Skip to content

Instantly share code, notes, and snippets.

@RogerPodacter
Created March 31, 2012 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RogerPodacter/2267166 to your computer and use it in GitHub Desktop.
Save RogerPodacter/2267166 to your computer and use it in GitHub Desktop.
module Dalli
class Client
def perform_with_hash(op, key, *args)
perform_without_hash(op, Digest::SHA1.hexdigest(key), *args)
end
alias_method_chain :perform, :hash
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment