lib/garner/strategies/binding/key/cache_key.rb
module Garner
module Strategies
module Binding
module Key
class CacheKey < Base
# Compute a cache key from an object binding.
#
# @param binding [Object] The object from which to compute a key.
# @return [String] A cache key string.
def self.apply(binding)
binding.cache_key if binding.respond_to?(:cache_key)
end
end
end
end
end
end