{"repo":"matthiasmullie/scrapbook","free":true,"listed":false,"github":"https://github.com/matthiasmullie/scrapbook","clone":"git clone https://github.com/matthiasmullie/scrapbook.git","description":"PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.","language":"PHP","stars":322,"topics":["cache","memcached","redis","apc","transactions","psr-6","psr-16","php","caching"],"license":"MIT","category":"databases-storage","readme_excerpt":"Documentation: https://www.scrapbook.cash - API reference: https://docs.scrapbook.cash Table of contents Installation & usage Adapters Memcached Redis Couchbase APCu MySQL PostgreSQL SQLite Filesystem Memory Features Local buffer Transactions Stampede protection Sharding Interfaces KeyValueStore psr/cache psr/simple-cache Collections Compatibility License Installation & usage Simply add a dependency on matthiasmullie/scrapbook to your composer.json file if you use Composer to manage the dependencies of your project: The exact bootstrapping will depend on which adapter, features and interface you will want to use, all of which are detailed below. This library is built in layers that are all KeyValueStore implementations that you can wrap inside one another if you want to add more features. Here's a simple example: a Memcached-backed psr/cache with stampede protection. Just take a look at this \"build your cache\" section to generate the exact configuration you'd like to use (adapter, interface, features) and some example code. Adapters Memcached Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. The PECL Memcached extension is used to interface with the Memcached server. Just provide a valid \\Memcached object to the Memcached adapter: Redis Redis is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyp","default_branch":null,"files":null,"tree":[],"storefront":"/r/matthiasmullie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matthiasmullie/scrapbook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}