Sha256: ab0f10184182f451c63454cdcfc4242918407df9c9154a9d0ef9c4267778f4b2
Contents?: true
Size: 358 Bytes
Versions: 9
Compression:
Stored size: 358 Bytes
Contents
module Cache module Object class KeyGenerator def self.key_for_object(class_name, id) "#{class_name}-#{id}" end def self.key_for_mapping(class_name, attributes) attributes_key = attributes.map do |k, v| "#{k}-#{v}" end.join('-') "#{class_name}-#{attributes_key}" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems