30, 'host' => 'localhost', 'port' => 11211 ); ezcCacheManager::createCache( 'memcache', 'memcache', 'ezcCacheStorageMemcachePlain', $options ); $myId = 'unique_id_1'; $mySecondId = 'id_2'; $cache = ezcCacheManager::getCache( 'memcache' ); if ( ( $dataOfFirstItem = $cache->restore( $myId ) ) === false ) { $dataOfFirstItem = "Plain cache stored on " . date( 'Y-m-d, H:i:s' ); $cache->store( $myId, $dataOfFirstItem ); } if ( ( $dataOfSecondItem = $cache->restore( $mySecondId ) ) === false ) { $dataOfSecondItem = "Plain cache 2 stored on " . date( 'Y-m-d, H:i:s' ); $cache->store( $mySecondId, $dataOfSecondItem ); } var_dump( $dataOfFirstItem, $dataOfSecondItem ); ?>