laravel-5 - 在 laravel 5.8 中创建自定义缓存驱动器给出错误“不支持驱动程序 [aerospike]。”
问题描述
我想使用 aerospike 创建一个自定义缓存驱动程序。
我已按照文档中的说明进行操作:
https://laravel.com/docs/5.8/cache#adding-custom-cache-drivers
Cache::extend('aerospike', function ($app) {
$config = $app['config'];
$server = $config['cache.stores.aerospike.servers'];
$aerospike = new \Aerospike($server);
$store = new AerospikeStore($aerospike, $config['cache.prefix'], $config['cache.stores.aerospike.namespace']);
return Cache::repository($store);
});
还创建了 AerospikeStore 文件。
运行php artisan serve
时它总是说:
在 CacheManager.php 第 109 行:
不支持驱动程序 [aerospike]。
解决方案
推荐阅读
- amazon-web-services - 如何在放大项目中为不同的环境添加不同的身份验证?
- javascript - 如何使用属性合并两个数组?
- windows-kernel - NDIS LWF 驱动程序导致网络堆栈中的 WFP 驱动程序出现问题?
- reactjs - npm run build 不接受更改
- django - DRF 没有像预期的那样重新评估查询集
- javascript - 使用传单显示 OpenWeatherMap 的问题
- html - fullpage js 最后一节滚动销毁
- javascript - 未捕获的类型错误:无法读取 null 的属性(读取“vlaue”)
- wso2 - WSO2。Groovy 脚本 - 中的 JSON 有效负载无效
在第 1 行 - android - 为什么在 Fragment 的布局中,app:drawableXXXCompat 和 app:tintm app:xxxTint 不适用于 TextView 和 Images,但在 Activity 布局中效果很好?