【文件属性】:
文件名称:safeapc:PHP APC(APCu) 缓存包装器
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-04 16:52:42
PHP
SafeApc - 使用 Wrapper 的 PHP APC 缓存安全
用法
use SafeApc ;
// initialize
SafeApc :: setCacheStartTime ( $ _SERVER [ 'REQUEST_TIME' ]);
SafeApc :: setCacheVersionKey ( file_get_contents ( 'apc_version' ));
// set key
SafeApc :: set ( 'cache key' , $ value , 100 );
// get key (throws SafeApcNotFoundException)
SafeApc :: get ( 'cache key' );
// delete key
SafeApc :: delete ( 'cache key' );
清除所有缓存
更改版本密钥
【文件预览】:
safeapc-master
----src()
--------SafeApc.php(3KB)
--------SafeApcException.php(80B)
--------SafeApcNotFoundException.php(88B)
----LICENSE(1KB)
----README.md(432B)
----composer.json(489B)