#!/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_max(500).build cache.put("1as", 2) 7.times do |i| puts cache.exists?("1as") sleep i / 2 end puts "yeet" at_exit do cache.invalidateAll end