https://github.com/liexusong/pcache
PHP local cache
https://github.com/liexusong/pcache
Last synced: 2 months ago
JSON representation
PHP local cache
- Host: GitHub
- URL: https://github.com/liexusong/pcache
- Owner: liexusong
- Created: 2014-07-09T05:36:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T12:53:39.000Z (over 9 years ago)
- Last Synced: 2024-05-20T11:33:01.664Z (over 1 year ago)
- Language: C
- Size: 87.9 KB
- Stars: 51
- Watchers: 5
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-php - liexusong/pcache - Extension for PHP local cache (缓存( Caching ))
README
__
____ _________ ______/ /_ ___
/ __ \/ ___/ __ `/ ___/ __ \/ _ \
/ /_/ / /__/ /_/ / /__/ / / / __/
/ .___/\___/\__,_/\___/_/ /_/\___/
/_/
Extension for PHP local cache (support PHP version 7)
-----------------------------------------------------
Thanks to @leandre https://github.com/nly
functions list:
---------------
* 1) pcache_set($key, $value, $expire = 0);
* 2) pcache_get($key);
* 3) pcache_del($key);
Example:
```php
```
php.ini
```ini
pcache.buckets_size = 1000 ; set the HashTable buckets size
pcache.cache_size = 1048576 ; set memory caches size
pcache.enable = 1 ; enable pcache extension
```