Showing posts with label memcached. Show all posts
Showing posts with label memcached. Show all posts

Tuesday, April 24, 2012

Arguments of set command on memcached telnet (2)

(continued from phosphorescence: Arguments of set command on memcached telnet (1))

3rd argument : expiration time

3rd argument(e.g. 0) is the expiration time. If you set zero to this argument, there is no expiration. If you set any positive numbers, value is deleted automatically after the seconds of expiration time.
set some_key 2 15 1
c
STORED
get some_key
VALUE some_key 2 1
c
END
After 15 seconds,
get some_key
END

4th argument : byte length

4th argument(e.g. 1) is the byte length of value.
set some_key 3 0 1
d
STORED
replace some_key 3 0 1
HeCLIENT_ERROR bad data chunk
llo World
ERROR
replace some_key 3 0 11
Hello World
STORED
get some_key
VALUE some_key 3 11
Hello World
END

Thursday, April 19, 2012

Arguments of set command on memcached telnet (1)

On memcached telnet, set command has 4 arguments:
set some_key 0 0 1

Of course, 1st argument(e.g. some_key) is the key. But, what are rest of arguments?

Friday, April 13, 2012

Deal memcached with telnet on windows

(1) Enable telnet client on Windows

If you are using Windows Vista/7/8, telnet client is disabled as default on these OSs. To enable, please check the page below and do those operations:
Install Telnet Client on Windows 7 or Windows Vista

Thursday, October 14, 2010

memcached for Windows had been expired

Until few days before, Memcached binaries for Windows were in http://labs.northscale.com/memcached-packages/. But now, no more in there because Northscale has moved to Membase and Membase.org since 4 days ago. And, if we still use memcached on Windows, we should to install Membase Server Enterprise Edition or Membase Community Edition. memcached is included in there.

For instance, I try to install Membase Community Edition on my Windows. This product has administration web pages like below: