Skip to content

lsfress/pcache

 
 

Repository files navigation

                                   __       
            ____  _________ ______/ /_  ___ 
           / __ \/ ___/ __ `/ ___/ __ \/ _ \
          / /_/ / /__/ /_/ / /__/ / / /  __/
         / .___/\___/\__,_/\___/_/ /_/\___/ 
        /_/                                 

Extension for PHP local cache

    1. slab memory algorithm
    1. compress value feature

Example:

<?php

pcache_set("myname", "liexusong");

var_dump(pcache_get("myname"));

pcache_del("myname");

var_dump(pcache_get("myname"));

?>

php.ini

pcache.buckets_size = 1000       ; set the HashTable buckets size
pcache.cache_size = 1048576      ; set memory caches size
pcache.enable = 1                ; enable pcache extension
pcache.compress_enable = 1       ; enable compress the value feature
pcache.compress_min = 16         ; set the min size of compress value

About

PHP local cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published