2 Star 1 Fork 0

cbsource / memcached

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

memcached

介绍

CBrother脚本实现的memcached客户端

食用姿势

var memcached = new Memcached();

// 设置数据
print memcached.set("test", "hello memecache");

// 取数据
print memcached.get("test");

// 设置数据5秒后失效
print memcached.set("test2", "hello memecache", 5);
print "等待6秒,使数据到期失效";
Sleep(6000);
// 取数据
print memcached.get("test2");

// 在后面追加数据
memcached.append("test", " append");
print memcached.get("test");

// 在前面追加数据
memcached.prepend("test", "prepend ");
print memcached.get("test");


// 清除所有数据
print memcached.flushAll();

Repository Comments ( 0 )

Sign in to post a comment

About

CBrother脚本实现的memcached客户端 expand collapse
C++
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C++
1
https://gitee.com/cbsource/memcached.git
git@gitee.com:cbsource/memcached.git
cbsource
memcached
memcached
master

Search

184635 d8eb8a04 1850385 161156 f1cf3f24 1850385