Basic implementation of ruby hash with value expiration