lib/memcached-server/memcache.rb
def prepend(key, bytes, new_data)

            purge_keys()

            return Reply::NOT_STORED unless @storage.key?(key)

            item = @storage[key]
            item.lock.synchronize do 

                item.data_block.prepend(new_data)
                item.bytes += bytes

            end

            item.update_cas_id()
            return Reply::STORED

        end
# Prepends <new_data> to a MemcachedServer::Item data_block that is stored in @storage with an associated <key>
# 
# @param key [String] The key of the item to store
# @param bytes [Integer] The byte size of <new_data>
# @param new_data [String] Is a chunk of arbitrary 8-bit data of length <bytes>
# @return [String] The reply that describes the result of the operation
Prepends  to a MemcachedServer::Item data_block that is stored in @storage with an associated 
Prepends to a MemcachedServer :: Item data_block that is stored in @storage with an associated
def prepend(key, bytes, new_data)
            purge_keys()
            return Reply::NOT_STORED unless @storage.key?(key)
            item = @storage[key]
            item.lock.synchronize do 
                item.data_block.prepend(new_data)
                item.bytes += bytes
            end
            item.update_cas_id()
            return Reply::STORED
        end
def prepend ( key , bytes , new_data ) purge_keys ( ) return Reply :: NOT_STORED unless @storage . key? ( key ) item = @storage [ key ] item . lock . synchronize do item . data_block . prepend ( new_data ) item . bytes += bytes end item . update_cas_id ( ) return Reply :: STORED end
Prepends <new_data> to a MemcachedServer::Item data_block that is stored in @storage with an associated <key>
Prepends <new_data > to a MemcachedServer :: Item data_block that is stored in @storage with an associated <key >
The reply that describes the result of the operation
The reply that describes the result of the operation
String
key
The key of the item to store
The key of the item to store
bytes
The byte size of 
The byte size of
new_data
None