This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tag = "a tag to contain a list of cacheId"; | |
$cacheId = "some key to cache"; | |
if ( ! $keys = $this->_cache->load( $tag ) ) { | |
$keys = array( $cacheId ); | |
$this->_cache->save( $keys, $tag ); | |
} | |
else if ( ! in_array( $cacheId, $keys ) ) { | |
$keys[] = $cacheId; | |
$this->_cache->save( $keys, $tag ); |