Jamm\Memory\IMemoryStorage::save PHP Метод

save() публичный Метод

Save variable in memory storage
public save ( string $key, mixed $value, integer $ttl = 259200, array | string $tags = NULL ) : boolean
$key string - key
$value mixed - value
$ttl integer - time to live (store) in seconds
$tags array | string - array of tags for this key
Результат boolean
    public function save($key, $value, $ttl = 259200, $tags = NULL);

Usage Example

Пример #1
0
 protected function setTableInfoInCache($info)
 {
     if (empty($this->CacheObject)) {
         return false;
     }
     return $this->CacheObject->save($this->cache_key_info . ':' . $this->name, $info, $this->cache_ttl);
 }
All Usage Examples Of Jamm\Memory\IMemoryStorage::save