keruald/cache
最新稳定版本:0.1.1
Composer 安装命令:
composer require keruald/cache
包简介
Abstraction layer for cache. Compatible PSR-16.
README 文档
README
This library offers a simple layer of abstraction for cache operations, with concrete implementations.
This cache implementation is compatible with PSR-16.
This cache implementation is NOT compatible with PSR-6.
Configuration
To get a cache instance, you need to pass configuration as an array.
The properties and values depend on the engine you want to use.
Memcached
| Key | Value | Default |
|---|---|---|
| engine | MemcachedCache class reference | |
| server | The memcached hostname | "localhost" |
| port | The memcached port | 11211 |
| sasl_username | The SASL username | |
| sasl_password | The SASL password | "" |
Redis
| Key | Value | Default |
|---|---|---|
| engine | MemcachedCache class reference | |
| server | The memcached hostname | "localhost" |
| port | The memcached port | 6379 |
| database | The redis database number | 0 |
Void
This cache allows unit tests or to offer a default cache, when no other configuration is offered.
| Key | Value |
|---|---|
| engine | VoidCache class reference |
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2023-07-04