Docs »

Plugins »

Extension Points »

Cache Engine

Name: Cache Engine
Identifier (ID): devblocks.cache.engine

Manifest


		<extension point="devblocks.cache.engine">
			<id>devblocks.cache.engine.disk</id>
			<name>Filesystem</name>
			<class>
				<file>api/services/cache.php</file>
				<name>DevblocksCacheEngine_Disk</name>
			</class>
			<params>
			</params>
		</extension>

Code



class ExampleExtension extends Extension_DevblocksCacheEngine {
	public function clean() {
	}

	public function isVolatile() {
	}

	public function load($key) {
	}

	public function remove($key) {
	}

	public function renderConfig() {
	}

	public function renderStatus() {
	}

	public function save($data, $key, $tags, $lifetime) {
	}

	public function setConfig(array $config) {
	}

	public function testConfig(array $config) {
	}
}


Extensions

Filesystem devblocks.cache.engine.disk
Memcached devblocks.cache.engine.memcache
Redis devblocks.cache.engine.redis