GitXplorerGitXplorer
s

perl-Cache-Tiny

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6232bcb9c350c56ca3096dfc1e749f3a9f555130

Make the perl scripts executable

sscottchiefbaker committed 10 years ago
Unverified
3b24745937e9daed5ff8d4f7fc26888bac778465

Tool to crawl the cache dir and remove old expired files

sscottchiefbaker committed 10 years ago
Unverified
6ed0691a80f720b92bd30e0a8ca8dee92ec72e52

Store the key in the cache also

sscottchiefbaker committed 10 years ago
Unverified
8afc47ffee2100107d3c32e20fada725f7898460

Add a cache_info.pl tool

sscottchiefbaker committed 10 years ago
Unverified
d31757803900fd2f139e6204d76ebb3205cb7359

Add a space

sscottchiefbaker committed 10 years ago
Unverified
75a480fb8f039be8c9b581eb1ec51fb112784156

Cache::Simple -> Cache::Tiny

sscottchiefbaker committed 10 years ago

README

The README file for this repository.

Cache::Tiny

Super simple disk based cached using only core Perl modules

Similar concept to memcached: get/set/delete. For a more full featured Perl cache module, look at Cache::Cache. This was designed to be a single function, which be copy/pasted in to existing code

use cache; # Or copy/paste the cache() function to your code

# Store an item in the cache indefinitely
$ok = cache("name", "scott");

# Store an item in the cache for 60 seconds
$ok = cache("name", "scott", time() + 60);

# Fetch an item from the cache
$name = cache("name");

# Delete an item from the cache
$ok = cache("name", undef);