{"id":20225584,"url":"https://github.com/kalaspuff/redis-cache-zend-framework","last_synced_at":"2025-08-03T18:37:37.247Z","repository":{"id":4982005,"uuid":"6139990","full_name":"kalaspuff/redis-cache-zend-framework","owner":"kalaspuff","description":"🗄 Redis cache backend for Zend Framework with support for tags. Uses PHP module phpredis. [not actively maintained]","archived":false,"fork":false,"pushed_at":"2018-11-23T01:26:31.000Z","size":28,"stargazers_count":44,"open_issues_count":6,"forks_count":30,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-12-08T03:51:40.712Z","etag":null,"topics":["cache","php","redis","zend-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kalaspuff.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-09T11:58:48.000Z","updated_at":"2022-01-11T19:31:03.000Z","dependencies_parsed_at":"2022-09-12T06:30:24.837Z","dependency_job_id":null,"html_url":"https://github.com/kalaspuff/redis-cache-zend-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fredis-cache-zend-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fredis-cache-zend-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fredis-cache-zend-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fredis-cache-zend-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalaspuff","download_url":"https://codeload.github.com/kalaspuff/redis-cache-zend-framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229868144,"owners_count":18136785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","php","redis","zend-framework"],"created_at":"2024-11-14T07:13:41.244Z","updated_at":"2024-12-19T18:13:38.087Z","avatar_url":"https://github.com/kalaspuff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis cache backend for Zend Framework by Carl Oscar Aaro\n=============\nRequires the phpredis extension for PHP to enable PHP to communicate with the [Redis](http://redis.io/) key-value store.\nStart with installing the phpredis PHP extension available at https://github.com/nicolasff/phpredis\n\nSet up the Redis cache backend by invoking the following code somewhere in your project.\n\n\u003cpre\u003e\n$redisCache = Zend_Cache::factory(\n    new Zend_Cache_Core(array(\n        'lifetime' =\u003e 3600,\n        'automatic_serialization' =\u003e true,\n    )),\n    new Extended_Cache_Backend_Redis(array(\n        'servers' =\u003e array(\n            array(\n                'host' =\u003e '127.0.0.1',\n                'port' =\u003e 6379,\n                'dbindex' =\u003e 1,\n                // 'persistent' =\u003e false, // not a persistent connection\n                // 'auth' =\u003e true, // enable authentication\n                // 'password' =\u003e 'mypwd000000', // password to authenticate on redis server\n            ),\n        ),\n        // 'key_prefix' =\u003e 'my_app', // if desire to add a prefix to all cache keys\n    ))\n);\n\u003c/pre\u003e\n\nWriting and reading from the cache works the same way as all other Zend Framework cache backends.\n\n\u003cpre\u003e\n$cacheKey = 'my_key';\n$data = 'e48e13207341b6bffb7fb1622282247b';\n\n/* Save data to cache */\n$redisCache-\u003esave($data, $cacheKey, array('tag1', 'tag2'));\n\n/* Load data from cache */\n$data = $redisCache-\u003eload($cacheKey);\n\n/* Clear all keys with tag 'tag1' */\n$redisCache-\u003eclean(Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('tag1'));\n\n/* Clear all cache (flush cache) */\n$redisCache-\u003eclean(Zend_Cache::CLEANING_MODE_ALL);\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalaspuff%2Fredis-cache-zend-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalaspuff%2Fredis-cache-zend-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalaspuff%2Fredis-cache-zend-framework/lists"}