Skip to content

Instantly share code, notes, and snippets.

@nayutaya
Created February 1, 2010 06:06
Show Gist options
  • Save nayutaya/291483 to your computer and use it in GitHub Desktop.
Save nayutaya/291483 to your computer and use it in GitHub Desktop.
# 「memcacheが適切に失効しない不具合」を修正するモンキーパッチ
# 対象はappengine-apis-0.0.12
module AppEngine
class Memcache
def put(key, value, expiration, mode)
check_write
convert_exceptions do
key = memcache_key(key)
value = memcache_value(value)
expiration = memcache_expiration(expiration)
service.put(key, value, expiration, mode)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment