mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Adding possibility to use a different cache-backend for locking and caching
- Renaming *LockDriver to *Lock since it isn't a "driver" anymore
This commit is contained in:
parent
86bf2ee45a
commit
34e4968c06
19 changed files with 149 additions and 64 deletions
|
@ -11,6 +11,20 @@ namespace Friendica\Core\Cache;
|
|||
*/
|
||||
abstract class AbstractCache implements ICache
|
||||
{
|
||||
const TYPE_APCU = 'apcu';
|
||||
const TYPE_ARRAY = 'array';
|
||||
const TYPE_DATABASE = 'database';
|
||||
const TYPE_MEMCACHE = 'memcache';
|
||||
const TYPE_MEMCACHED = 'memcached';
|
||||
const TYPE_REDIS = 'redis';
|
||||
|
||||
/**
|
||||
* Force each Cache implementation to define the ToString method
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract function __toString();
|
||||
|
||||
/**
|
||||
* @var string The hostname
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue