function testInit() { try { CacheableModel::drop(); } catch (ActiveMongo_Exception $e) { } ActiveMongo_Cache::setDriver(new CacheDriverMem()); }
$object[$k] = FALSE; } return TRUE; } function setMulti(array $objects, array $ttl) { $this->memcached->setMulti($objects); } function get($key, &$object) { $object = $this->memcached->get($key); if (!$object) { if ($this->memcached->getResultCode() == Memcached::RES_NOTFOUND) { return FALSE; } } return TRUE; } function set($key, $object, $ttl) { $this->memcached->set($key, $object, $ttl); } function delete(array $keys) { foreach ($keys as $key) { $this->memcached->delete($key); } } } ActiveMongo_Cache::setDriver(new MemcachedDriver());