# File lib/puppet/indirector/indirection.rb, line 162 162: def expire(key, *args) 163: request = request(:expire, key, *args) 164: 165: return nil unless cache? 166: 167: return nil unless instance = cache.find(request(:find, key, *args)) 168: 169: Puppet.info "Expiring the #{self.name} cache of #{instance.name}" 170: 171: # Set an expiration date in the past 172: instance.expiration = Time.now - 60 173: 174: cache.save(request(:save, instance, *args)) 175: end