diff options
author | Urban Müller | 2016-11-23 18:38:43 +0100 |
---|---|---|
committer | Urban Müller | 2016-11-23 18:38:43 +0100 |
commit | 03abe80eb9c105693a9d63ac5b97786e9c9368ef (patch) | |
tree | 6012f67e4583c5eff773ad1c93bbe31f84ed6eca /it_cache.class | |
parent | 9a0caaf22c5125ea302846896f5061b87b94ac04 (diff) | |
download | itools-03abe80eb9c105693a9d63ac5b97786e9c9368ef.tar.gz itools-03abe80eb9c105693a9d63ac5b97786e9c9368ef.tar.bz2 itools-03abe80eb9c105693a9d63ac5b97786e9c9368ef.zip |
distributed_on_devel implies distributed
Diffstat (limited to 'it_cache.class')
-rw-r--r-- | it_cache.class | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/it_cache.class b/it_cache.class index 91916ea..e758734 100644 --- a/it_cache.class +++ b/it_cache.class @@ -28,7 +28,7 @@ static function _defaults($p) { $p += array( 'ttl' => 2, - 'distributed' => false, + 'distributed' => $p['distributed_on_devel'], 'hostsfile' => '/opt/ultra/etc/memcached.hosts', 'safety' => 1, ); @@ -70,7 +70,8 @@ static function get($key, $p = array()) * Put value for specific key into cache. Can be mixed value but no objects. WARNING: only distributed works from shell * @param $key Key to put value with * @param $value Value to put (mixed but no objects allowed) - * @param $p['distributed'] Use distributed memcache (scalars may become strings) [false] + * @param $p['distributed'] Use distributed memcache on live machines (scalars may become strings) [false] + * @param $p['distributed_on_devel'] Like $p['distributed'], but also use memcache on devel and twin * @param $p['ttl'] Time to live for this key/value-pair in seconds * @param $p['safety'] set to 0 to suppress an it::error in case of failure [1] * @return Returns $value |