src/Webtrees/Cache.php
public function saveI($value, $data, AbstractModule $mod = null){
		$this->checkInit();
		
		$item = $value;
		if(!($value instanceof CacheItemInterface)) {
		    $item = new \Stash\Item();
    		$item->setKey($this->getKeyName($value, $mod));
		}		
		$item->set($data);
		$this->cache->save($item);
	}
public function saveI($value, $data, AbstractModule $mod = null){
		$this->checkInit();
		
		$item = $value;
		if(!($value instanceof CacheItemInterface)) {
		    $item = new \Stash\Item();
    		$item->setKey($this->getKeyName($value, $mod));
		}		
		$item->set($data);
		$this->cache->save($item);
	}
public function saveI ( $ value , $ data , AbstractModule $ mod = null ) { $ this -> checkInit ( ) ; $ item = $ value ; if ( ! ( $ value instanceof CacheItemInterface ) ) { $ item = new \ Stash \ Item ( ) ; $ item -> setKey ( $ this -> getKeyName ( $ value , $ mod ) ) ; } $ item -> set ( $ data ) ; $ this -> cache -> save ( $ item ) ; }
Cache a value to the specified key

@param string|\Psr\Cache\CacheItemInterface $value Value name
@param mixed $data Value
@param AbstractModule $mod Calling module
Cache a value to the specified key