用于Laravel的RoadRunner键值缓存器
Laravel  /  管理员 发布于 2个月前   86
Laravel的Roadrunner KV Cache包
https://github.com/asanikovich/laravel-roadrunner-cache?ref=laravelnews
允许你使用Roadrunner Key-Value Plugin
https://roadrunner.dev/docs/kv-overview
作为缓存驱动:
use Illuminate\Support\Facades\Cache;
// Default main store - rr-memory
Cache::driver()->get('key');
// rr-boltdb store
Cache::driver('rr-boltdb')->get('key');
Key-Value插件允许在不同的HTTP请求或其他类型的应用程序(如CLI)之间在RoadRunner内部存储任意数据。
通过Roadrunner,如果你需要持久化存储,该软件包支持内存存储和boltdb驱动。
如果你的数据可能包含敏感信息,如个人用户数据,它还支持端到端加密序列化。
与其他缓存驱动一样,RoadRunner的Key-Value驱动可以配置多种选项。
下面是自述文件中
https://github.com/asanikovich/laravel-roadrunner-cache#config-file-example
缓存配置示例中的一些配置选项:
<?php
return [
'default' => 'rr-memory', // Default store (optional)
'stores' => [
'rr-memory' => [ // Custom store name with "memory" connection
'driver' => 'roadrunner',
'connection' => 'memory', // section name from KV plugin settings in RoadRunner config file (.rr.yaml)
'serializer' => null, // Available options: null|igbinary
'encryption_key' => null, // Available options: null|string
],
'rr-memory-igbinary-encrypted' => [ // Custom store name with "memory" connection and encrypted "igbinary" serializer
'driver' => 'roadrunner',
'connection' => 'memory', // section name from KV plugin settings in RoadRunner config file (.rr.yaml)
'serializer' => 'igbinary', // Available options: null|igbinary
'encryption_key' => 'key1', // Available options: null|string
],
'rr-memory-encrypted' => [ // Custom store name with "memory" connection and encrypted serializer
'driver' => 'roadrunner',
'connection' => 'memory', // section name from KV plugin settings in RoadRunner config file (.rr.yaml)
'serializer' => null, // Available options: null|igbinary
'encryption_key' => 'key2', // Available options: null|string
],
],
],
您可以在GitHub上了解laravel-roadrunner-cache软件包的更多信息,
获得完整的安装说明,并查看源代码:
https://github.com/asanikovich/laravel-roadrunner-cache
路人 在
php中使用hyperf框架调用讯飞星火大模型实现国内版chatgpt功能示例中评论 教程很详细,如果加个前端chatgpt对话页面就完美了..博主 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 @ mashrdn 多切换几个节点测试,免费ssr是没那么稳..mashrdn 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 V2rayn免费节点添加上去了,youtobe无法打开网页,是怎么回事..张伟 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 3q!有用,不过免费节点隔天就要去git上复制新的导进去..博主 在
科学上网翻墙访问Google , 上外网神器佛跳墙VPN(永久免费)使用流程步骤中评论 该篇教程已不能用了,告知大家,免的老有老铁问我!..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号