Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

freedomsex/key-value-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Key-Value Storage

A simple key-value storage based on PSR-6, Caching Interface. Inspired by \Memcached()

# Symfony config cache.yaml

framework:
  cache:
    default_memcached_provider: 'memcached://localhost'
    pools:
      memory:
        adapter: cache.adapter.memcached
        public: true
use FreedomSex\Services\KeyValueStorage;

// ...

public function __construct(KeyValueStorage $storage) 
{
    $this->storage = $storage;
}

// ...

$storage->save($key, $value, $expires = null);
$storage->load($key, $default = null);

////
// See source
////

// touch, item, clear
// [CounterStorage trait] increment, decrement, count

About

A simple key-value storage based on PSR-6, Caching Interface.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages