protected Method

MemCache.hash_for(key)

Returns an interoperable hash value for key. (I think, docs are sketchy for down servers).

Source Code

# File active_support/vendor/memcache-client-1.5.0/memcache.rb, line 562
def hash_for(key)
  (key.crc32_ITU_T >> 16) & 0x7fff
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.