Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
    use phpFastCache\CacheManager;

    $cache = CacheManager::Memcached();

    // try to get from Cache first.
    $resultsItem = $cache->getItem("identity_keyword")

    if(!$resultsItem->isHit()) {

    foreach($results as $video) {
        // Output Your Contents HERE

This comment has been minimized.

Copy link

@agengdp agengdp commented Mar 27, 2017

it should be expiresAfter(3600*24) with 's'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment