diff options
-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 |