2017 © Pedro Peláez
 

library lrucache

An efficient memory-based Least Recently Used (LRU) cache

image

cash/lrucache

An efficient memory-based Least Recently Used (LRU) cache

  • Friday, September 20, 2013
  • by cash
  • Repository
  • 3 Watchers
  • 14 Stars
  • 79,688 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

LRU Cache

Build Status, (*1)

Implements a non-persistent memory-based Least Recently Used cache., (*2)

The keys can be integers or strings. The values can be anything. Because this library uses array(), keys that are strings that contain an integer ("7") are cast to an integer. Therefore, there is no difference between the key "7" and the key 7., (*3)

$cache = new LRUCache(10);
$cache->put('line1', 'roses are red');
$cache->put('line2', 'violets are blue');
$line1 = $cache->get('line1');

The Versions

20/09 2013

dev-master

9999999-dev https://github.com/cash/LRUCache

An efficient memory-based Least Recently Used (LRU) cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Cash Costello

cache lru

20/09 2013

1.0.0

1.0.0.0 https://github.com/cash/LRUCache

An efficient memory-based Least Recently Used (LRU) cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Cash Costello

cache lru