{"id":21193233,"url":"https://github.com/alicewondermiscreations/simplecacheredis","last_synced_at":"2026-05-19T09:10:11.131Z","repository":{"id":62490385,"uuid":"125888134","full_name":"AliceWonderMiscreations/SimpleCacheRedis","owner":"AliceWonderMiscreations","description":"An implementation of the PSR-16 SimpleCache Interface for Redis with optional AEAD encryption","archived":false,"fork":false,"pushed_at":"2018-04-30T23:04:27.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T18:11:31.850Z","etag":null,"topics":["cache","libsodium","libsodium-php","php","php-library","php7","psr-16","redis"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliceWonderMiscreations.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-19T16:28:51.000Z","updated_at":"2018-04-30T23:03:05.000Z","dependencies_parsed_at":"2022-11-02T11:03:03.559Z","dependency_job_id":null,"html_url":"https://github.com/AliceWonderMiscreations/SimpleCacheRedis","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/AliceWonderMiscreations/SimpleCacheRedis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceWonderMiscreations%2FSimpleCacheRedis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceWonderMiscreations%2FSimpleCacheRedis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceWonderMiscreations%2FSimpleCacheRedis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceWonderMiscreations%2FSimpleCacheRedis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliceWonderMiscreations","download_url":"https://codeload.github.com/AliceWonderMiscreations/SimpleCacheRedis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliceWonderMiscreations%2FSimpleCacheRedis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267278897,"owners_count":24063277,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","libsodium","libsodium-php","php","php-library","php7","psr-16","redis"],"created_at":"2024-11-20T19:13:35.213Z","updated_at":"2026-05-19T09:10:11.090Z","avatar_url":"https://github.com/AliceWonderMiscreations.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SimpleCacheRedis\n================\n\nThis is an implementation of [PSR-16](https://www.php-fig.org/psr/psr-16/) for\nthe Redis caching engine.\n\nTwo different classes are provided. The first just provides a PSR-16 compliant\ninterface to Redis and the second provides encryption of the cached data via\nthe libsodium extension.\n\nPlease refer to the files [`INSTALL.md`](INSTALL.md), [`USAGE.md`](USAGE.md),\nand [`SURVIVAL.md`](SURVIVAL.md) for more information specific to\nSimpleCacheRedis.\n\nFor instructions specific to the encryption option. see the file\n[`SODIUM.md`](SODIUM.md).\n\nPlease refer to the file [`LICENSE.md`](LICENSE.md) for the terms of the MIT\nLicense this software is released under.\n\n* [About Redis Caching](#about-redis-caching)\n* [About PHP-FIG and PSR-16](#about-php-fig-and-psr-16)\n* [Coding Standard](#coding-standard)\n* [About AWonderPHP](#about-awonderphp)\n\n\nAbout Redis Caching\n-------------------\n\nRedis does *far more* than just behave as a caching engine, according to the\nweb site [https://redis.io](https://readis.io) it provides an in-memory data\nstructure that can be used as a database, cache, and message broker.\n\nFor this PSR-16 implementation, using it as a PHP object cache is all that\nmatters, but redis itself is capable of some incredible things beyond the scope\nof this class.\n\nWhile looking at various benchmarks, it appears to me that in the use case\nscenarios that best match a PSR-16 implementation, APCu is faster than Redis.\nHowever there are several compelling reasons as to why Redis may be the better\nchoice for some situations:\n\n* Redis cache survives a web server daemon restart.\n* Redis cache (unless configured not to) survives a server reboot.\n* Redis cache can be made accessible to other servers in your network.\n* Redis cache can use a cluster if you have a lot of data you need to have\nhandled by a caching engine.\n\nIf you just have a single server scenario that does not need to share its\ncached with other servers, APCu may be the better choice for PSR-16\ncaching needs, see\\\n[SimpleCacheAPCu](https://github.com/AliceWonderMiscreations/SimpleCacheAPCu)\nfor a PSR-16 implementation for APCu.\n\n\nAbout PHP-FIG and PSR-16\n------------------------\n\nPHP-FIG is the [PHP Framework Interop Group](https://www.php-fig.org/). They\nexist largely to create standards that make it easier for different developers\naround the world to create different projects that will work well with each\nother. PHP-FIG was a driving force behind the PSR-0 and PSR-4 auto-load\nstandards for example that make it *much much* easier to integrate PHP class\nlibraries written by other people into your web applications.\n\nThe PHP-FIG previously released PSR-6 as a Caching Interface standard but the\ninterface requirements of PSR-6 are beyond the needs of many web application\ndevelopers. KISS - ‘Keep It Simple Silly’ applies for many of us who do not\nneed some of the features PSR-6 requires.\n\nTo meet the needs of those of us who do not need what PSR-6 implements,\n[PSR-16](https://www.php-fig.org/psr/psr-16/) was developed and is now an\naccepted standard.\n\nWhen I read PSR-16, the defined interface it was not *that* different from my\nown APCu caching class that I have personally been using for years. So I\ndecided to make my class meet the interface requirements.\n\nThen a Redis user asked me if I could possibly adapt the library for Redis. So\nI did and this is the result.\n\n\nCoding Standard\n---------------\n\nThe coding standard used is primarily\n[PSR-2](https://www.php-fig.org/psr/psr-2/) except with the closing `?\u003e`\nallowed, and the addition of some\n[PHPDoc](https://en.wikipedia.org/wiki/PHPDoc) requirements largely but not\ncompletely borrowed from the\n[PEAR standard](http://pear.php.net/manual/en/standards.php).\n\nThe intent is switch PHPDoc standard to\n[PSR-5](https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md)\nif it ever becomes an accepted standard.\n\nThe `phpcs` sniff rules being used: [psr2.phpcs.xml](psr2.phpcs.xml)\n\n\nAbout AWonderPHP\n----------------\n\nI may become homeless before the end of 2018. I do not know how to survive, I\ntry but what I try, it always seems to fail. This just is not a society people\nlike me are meant to be a part of.\n\nIf I do become homeless, I fear my mental health will deteriorate at an\naccelerated rate and I do not want to witness that happening to myself.\n\nAWonderPHP is my attempt to clean up and package a lot of the PHP classes I\npersonally use so that something of me will be left behind.\n\nIf you wish to help, please see the [SURVIVAL.md](SURVIVAL.md) file.\n\nThank you for your time.\n\n\n-------------------------------------------------\n__EOF__\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicewondermiscreations%2Fsimplecacheredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falicewondermiscreations%2Fsimplecacheredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicewondermiscreations%2Fsimplecacheredis/lists"}