12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- class MemcacheSchemaCache implements Net_LDAP2_SchemaCache
- {
- protected $c;
- protected $cacheKey;
-
- public function MemcacheSchemaCache($cfg)
- {
- $this->c = $cfg['c'];
- $this->cacheKey = $cfg['cacheKey'];
- }
-
- public function loadSchema()
- {
- return $this->c->get($this->cacheKey);
- }
-
- public function storeSchema($schema) {
- return $this->c->set($this->cacheKey, $schema);
- }
- }
|