memcached基础14

2022-06-26 23:36:53 浏览数 (1)

add

添加不存在的KEY

add abc 0 0 8

qwertyui

STORED

get abc

VALUE abc 0 8

qwertyui

END

add abc 0 0 8

iuytrewq

NOT_STORED

get abc

VALUE abc 0 8

qwertyui

END

replace

替换已存在的KEY

get abc

VALUE abc 0 8

qwertyui

END

replace abc 0 0 9

asdfghjkl

STORED

get abc

VALUE abc 0 9

asdfghjkl

END

replace ui 0 0 8

asdfghjkl

CLIENT_ERROR bad data chunk

ERROR

gets

查看修改tag

get abc

VALUE abc 0 9

asdfghjkl

END

gets abc

VALUE abc 0 9 8

asdfghjkl

END

set abc 0 0 8

zxcvbnml

STORED

get abc

VALUE abc 0 8

zxcvbnml

END

gets abc

VALUE abc 0 8 9

zxcvbnml

END

0 人点赞