Return a key string for the given primary key.
Raises:
83 84 85 86
# File 'lib/sequel/plugins/caching.rb', line 83 def cache_key(pk) raise(Error, 'no primary key for this record') unless pk.is_a?(Array) ? pk.all? : pk "#{cache_key_prefix}:#{Array(pk).join(',')}" end