Skip to content

Simple string caching interface and implementations.

License

Notifications You must be signed in to change notification settings

journeygroup/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journey Cache

Build Status Code Coverage Scrutinizer Code Quality

What

Journey cache is a very simple string caching interface. It is a much simpler alternative to the PSR-6 interface, and mostly useful for basic string cache. The interface comes bundled with a local file cache (LocalAdapter) and a memcached (MemcachedAdapter) implementation.

Interface

interface CacheAdapterInterface
{
    public function set($key, $value, $expiration = 0);
    public function get($key);
    public function delete($key);
    public function clear();
}

It's simple enough you can probably guess how to write your own adapters, but if you want more documentation, read the interface.

Note: The PSR-6 interface is fantastic, but sometimes you just don't need to be as verbose or robust as it requires. This fills that gap.

About

Simple string caching interface and implementations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages