Sha256: 2a7178eae956ec9f4707d3fa20232fcc3dd1727c7cb5289eea7bff6f668c6338
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
#!/usr/bin/env ruby require "../lib/libcache/cache_builder" require_relative "../lib/libcache/file_cache" cache = CacheBuilder.with(Cache).set_store(ARGV[0]).set_expiry('3s').set_refresh(Proc.new { |key| key + 12 }).build cache.put(1, 2) 2.times do |i| puts cache.get(1) sleep i end at_exit do cache.invalidateAll end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libcache-0.1.0 | exe/libcache |