2017 © Pedro Peláez
 

library cache

Simple cache abstraction layer implementing PSR-16

image

sabre/cache

Simple cache abstraction layer implementing PSR-16

  • Tuesday, October 10, 2017
  • by dominik
  • Repository
  • 5 Watchers
  • 34 Stars
  • 3,786 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 2 Versions
  • 50 % Grown

The README.md

sabre/cache

This repository is a simple abstraction layer for key-value caches. It implements PSR-16., (*1)

If you need a super-simple way to support PSR-16, sabre/cache helps you get started. It's as hands-off as possible., (*2)

It also comes with a test-suite that can be used by other PSR-16 implementations., (*3)

Installation

Make sure you have composer installed, and then run:, (*4)

composer require sabre/cache

Usage

Read PSR-16 for the API. We follow it to the letter., (*5)

In-memory cache

This is useful as a test-double for long-running processes. The Memory cache only lasts as long as the object does., (*6)

$cache = new \Sabre\Cache\Memory();

APCu cache

This object uses the [APCu][6] api for caching. It's a fast memory cache that's shared by multiple PHP processes., (*7)

$cache = new \Sabre\Cache\Apcu();

Memcached cache

This object uses the [Memcached][6] extension for caching., (*8)

$memcached = new \Memcached();
$memcached->addServer('127.0.0.1', 11211);
$cache = new \Sabre\Cache\Memcached($memcached);

You are responsible for configuring memcached, and you just pass a fully instantiated objected to the \Sabre\Cache\Memcached constructor., (*9)

Build status

branch status
master Build Status

Questions?

Head over to the sabre/dav mailinglist, or you can also just open a ticket on GitHub., (*10)

Made at fruux

This library is being developed by fruux. Drop us a line for commercial services or enterprise support., (*11)

The Versions

10/10 2017

dev-master

9999999-dev http://sabre.io/dav/

Simple cache abstraction layer implementing PSR-16

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

cache memcache apc memcached apcu psr-16 simple-cache sabre

03/01 2017

1.0.0

1.0.0.0 http://sabre.io/dav/

Simple cache abstraction layer implementing PSR-16

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

cache memcache apc memcached apcu psr-16 simple-cache sabre