Class
Memcache
In:
lib/memcache.rb
lib/memcache/base.rb
lib/memcache/local_server.rb
lib/memcache/migration.rb
lib/memcache/null_server.rb
lib/memcache/pg_server.rb
lib/memcache/segmented.rb
lib/memcache/server.rb
Parent:
Object
Methods
[]
[]=
add
add_or_get
append
cas
clear
clone
compatible_opts
count
decr
delete
flush_all
get
get_or_add
get_or_set
get_some
in_namespace
incr
init
inspect
lock
lock_key
locked?
marshal
multi_get
namespace=
new
pool
prepend
read
read_multi
replace
reset
server
set
stats
unlock
unmarshal
update
with_lock
write
Classes and Modules
Module
Memcache::Segmented
Class
Memcache::Base
Class
Memcache::ClientError
Class
Memcache::ConnectionError
Class
Memcache::Error
Class
Memcache::LocalServer
Class
Memcache::Migration
Class
Memcache::NullServer
Class
Memcache::PGServer
Class
Memcache::Pool
Class
Memcache::SegmentedNativeServer
Class
Memcache::SegmentedServer
Class
Memcache::Server
Class
Memcache::ServerError
Constants
DEFAULT_EXPIRY
=
0
LOCK_TIMEOUT
=
5
WRITE_LOCK_WAIT
=
1
Attributes
backup
[R]
default_expiry
[R]
namespace
[R]
servers
[R]
Public Class methods
init
(yaml_file = nil)
new
(opts)
Protected Class methods
pool
()
Public Instance methods
[]
(key)
[]=
(key, value)
add
(key, value, opts = {})
add_or_get
(key, value, opts = {})
append
(key, value)
cas
(key, value, opts)
clear
(opts = {})
Alias for
flush_all
clone
()
count
(key)
decr
(key, amount = 1)
delete
(key)
flush_all
(opts = {})
get
(keys, opts = {})
get_or_add
(key, *args) {|, opts) || get(key)| ...}
get_or_set
(key, *args) {|, opts)| ...}
get_some
(keys, opts = {}) {|keys_to_fetch| ...}
in_namespace
(namespace) {|| ...}
incr
(key, amount = 1)
inspect
()
lock
(key, opts = {})
lock_key
(key)
locked?
(key)
namespace=
(namespace)
prepend
(key, value)
read
(key, opts = nil)
read_multi
(*keys)
replace
(key, value, opts = {})
reset
()
set
(key, value, opts = {})
stats
(field = nil)
unlock
(key)
update
(key, opts = {}) {|value| ...}
with_lock
(key, opts = {}) {|| ...}
write
(key, value, opts = nil)
Protected Instance methods
compatible_opts
(opts)
marshal
(value, opts = {})
multi_get
(keys, opts = {})
server
(key)
unmarshal
(value, key = nil)
[Validate]