Memcached Prepend Operation with Python Example

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/memcached-prepend-operation-python-example/
PINTEREST
PINTEREST
INSTAGRAM

Prepend operation is simple and made on existing key-value. Newly provided value will be added at the beginning of existing value. Syntax is the same as other commands.

  • prepend the operation
  • key the key where its value will be prepended
  • flag  as you know
  • expiretime  how much time key-value will be hold
  • bytes the size of the value

Let’s add some data for start

Now append more data please

  • prepend as we guess operation
  • poftut is existing key for prepend
  • flags,flags
  • 100 time to hold new key-value
  • prepended data size
  • neww  is prepended value
  • STORED means prepend is successfully complated

Check new value for poftut

Python Application

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/memcached-prepend-operation-python-example/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Python Modules Tutorial With Examples

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)