APC of yii Cache

Source: Internet
Author: User
Tags apc

First, yii capccache implements a cache application component for APC. Common cache operations include get, set, add, delete, and flush...

The configuration is as follows:

1. Add the following in config/Main. php components:

'Apccache' => array (
'Class' => 'System. caching. capccache'
),

2. Download php_apc.dll and put the file under PHP/EXT. It may be difficult to search ....

3. Add the php_apc extension in PHP. ini:

Extension = php_apc.dll

APC. rfc1867 = on

CAPC. max_file_size = 100 m

Upload_max_filesize = 100 m

Post_max_size = 100 m

Restart Apache and use the info () function to check whether APC extensions are available.

4. Usage:

Yii: APP ()-> apccache-> get (ID );

Yii: APP ()-> apccache-> set (ID, value, time );

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.