Selleo / pattern

A collection of lightweight, standardized, rails-oriented patterns.
MIT License
708 stars 39 forks source link

cache key consistency across multiple servers #15

Closed martyciz closed 4 years ago

martyciz commented 5 years ago

.hash method has inconsistent results across different servers / ruby processes (see link).

I suggest replacing it with consistent method : Digest::SHA1.hexdigest.

bartoszmaka commented 4 years ago

I'm working on test case in this PR: https://github.com/Selleo/pattern/pull/26