Object
# File lib/rack/cache/appengine.rb, line 23 23: def contains?(key) 24: MC::Service.contains(key) 25: end
# File lib/rack/cache/appengine.rb, line 46 46: def delete(key) 47: MC::Service.delete(key) 48: end
# File lib/rack/cache/appengine.rb, line 27 27: def get(key) 28: value = MC::Service.get(key) 29: Marshal.load(Base64.decode64(value)) if value 30: end
# File lib/rack/cache/appengine.rb, line 38 38: def namespace 39: MC::Service.getNamespace 40: end
# File lib/rack/cache/appengine.rb, line 42 42: def namespace=(value) 43: MC::Service.setNamespace(value.to_s) 44: end
# File lib/rack/cache/appengine.rb, line 32 32: def put(key, value, ttl = nil) 33: expiration = ttl ? MC::Expiration.byDeltaSeconds(ttl) : nil 34: value = Base64.encode64(Marshal.dump(value)).gsub(/\n/, '') 35: MC::Service.put(key, value, expiration) 36: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.