Download the PHP package linio/cache without Composer
On this page you can find all versions of the php package linio/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cache
Linio Cache
Linio Cache is yet another component of the Linio Framework. It aims to abstract caching by supporting multiple adapters.
Install
The recommended way to install Linio Cache is through composer.
Tests
To run the test suite, you need install the dependencies via composer, then run PHPUnit.
$ composer install
$ phpunit
Cache Not Found Keys
It is now possible (v.1.0.9) to cache not found keys in upper level adapters of the adapter stack. The configuration option cache_not_found_keys can be set at the adapter level.
Note that this option, obviously, does not apply to the last level of the cache hierarchy.
Usage
Note that must provide an adapter name and an array of options. Each adapter has different configuration options.
To start setting data:
Methods
get
getMulti
set
setMulti
delete
deleteMulti
contains
flush
Providers
array
This cache does not have any persistence between requests.
Not recommended to be used in production environments.
apc
Adapter options:
ttloptional default: 0 (unlimited)cache_not_found_keysoptional default: false
Requires APC extension or APCu extension.
wincache
Adapter options:
ttloptional default: 0 (unlimited)cache_not_found_keysoptional default: false
Requires WinCache extension.
memcached
Adapter options:
serversarray of memcache servers. format: [[, , ], [ , , ], ...] optionsarray of memcache options. format: [=> , => , ...] connection_persistentoptional default: falsepool_sizeoptional default: 1 (only for persistent connections)ttloptional default: 0 (unlimited)cache_not_found_keysoptional default: false
Requires Memcached extension.
redis
Adapter options:
hostoptional default: 127.0.0.1portoptional default: 6379databaseoptional default: 0 (int)passwordoptional default: null (no password)connection_persistentoptional default: falsettloptional default: 0 (unlimited)cache_not_found_keysoptional default: false
More information on the available parameters at the Predis documentation.
phpredis
Adapter options:
hostoptional default: 127.0.0.1portoptional default: 6379databaseoptional default: 0 (int)passwordoptional default: null (no password)connection_persistentoptional default: falsepool_sizeoptional default: 1 (only for persistent connections)timeoutoptional default: 0 (unlimited)read_timeoutoptional default: 0 (unlimited)retry_intervaloptional default: 0 (value in milliseconds)ttloptional default: 0 (unlimited)cache_not_found_keysoptional default: falseserializeroptional default: nonenonedon't serialize dataphpuse built-in serialize/unserializeigbinaryuse igBinary serialize/unserialize (requiresigbinaryextension)
More information on the available parameters at the phpredis documentation.
Requires redis extension.
mysql
Using PDO.
Adapter options:
hostportdbnameusernamepasswordtable_nameensure_table_createdoptional default: falsecache_not_found_keysoptional default: false
The ensure_table_created is used to ensure the cache table exists in the database. This option has a significant performance impact.
Not recommended to be used in production environments.
aerospike
Adapter options:
hostsaerospike_namespaceoptional default: testpersistentoptional default: trueoptionsoptional default: []ttloptional default: 0 (unlimited)cache_not_found_keysoptional default: false
For the Aerospike adapter, the aerospike_namespace property will be used as the namespace in Aerospike, and the namespace configuration in the CacheService will be used as the set in Aerospike.
Requires Aerospike Extension.
All versions of cache with dependencies
psr/log Version ^1.0.1 || ^2.0 || ^3.0
linio/util Version ^4.0
linio/database Version ^5.1.0
predis/predis Version ^1.0 || ^2.0
doctrine/inflector Version ^2.0

