vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/lib/memcache.rb
def incr( key, val=1 )
		raise MemCacheError, "no active servers" unless self.active?
		raise MemCacheError, "readonly cache" if self.readonly?

		@mutex.synchronize( Sync::EX ) {
			self.incrdecr( :incr, key, val )
		}
	end
### Atomically increment the value associated with +key+ by +val+. Returns
### +nil+ if the value doesn't exist in the cache, or the new value after
### incrementing if it does. +val+ should be zero or greater.  Overflow on
### the server is not checked.  Beware of values approaching 2**32.
Atomically increment the value associated with +key+ by +val+. Returns
+nil+ if the value doesn't exist in the cache, or the new value after
incrementing if it does. +val+ should be zero or greater.  Overflow on
the server is not checked.  Beware of values approaching 2**32.
Atomically increment the value associated with + key + by + val + . Returns + nil + if the value doesn ' t exist in the cache or the new value after incrementing if it does . + val + should be zero or greater . Overflow on the server is not checked . Beware of values approaching 2 ** 32 .
def incr( key, val=1 )
		raise MemCacheError, "no active servers" unless self.active?
		raise MemCacheError, "readonly cache" if self.readonly?
		@mutex.synchronize( Sync::EX ) {
			self.incrdecr( :incr, key, val )
		}
	end
def incr ( key , val = 1 ) raise MemCacheError , "no active servers" unless self . active? raise MemCacheError , "readonly cache" if self . readonly? @mutex . synchronize ( Sync :: EX ) { self . incrdecr ( :incr , key , val ) } end
Atomically increment the value associated with +key+ by +val+.
Atomically increment the value associated with + key + by + val + .
key
val