-
-
Save bdalziel/1240329 to your computer and use it in GitHub Desktop.
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 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment