cache:hyperfcache的功能

时间:2021-03-10 18:23:55
【文件属性】:
文件名称:cache:hyperfcache的功能
文件大小:9KB
文件格式:ZIP
更新时间:2021-03-10 18:23:55
PHP Hyperf缓存的某些功能 composer require gemini/cache 支持使用此获取当前实例的成员变量 <?php use Gemini \ Cache \ Annotation \ Cacheable ; class UserService { public $ id = 1 ; /** * @Cacheable(prefix="test", value="#{this.id}") */ function getCache () { return uniqid (); } } $ res = ( new UserService ())-> getCache (); // 生成的缓存 KEY 为 test:1 使用MD5格式化缓存KEY 配置映射关系,修改dependencies.php <?
【文件预览】:
cache-main
----.gitattributes(44B)
----src()
--------Aspect()
--------Annotation()
--------AnnotationManager.php(619B)
--------ConfigProvider.php(638B)
----.php_cs(2KB)
----.travis.yml(871B)
----LICENSE(1KB)
----phpunit.xml(493B)
----README.md(871B)
----.phpstorm.meta.php(116B)
----.gitignore(36B)
----composer.json(1KB)

网友评论