Redis中的常用命令哪些?

2022-06-15 20:54:11 字數 293 閱讀 9857

a、hset 儲存乙個雜湊鍵值對的集合

b、hget獲取乙個雜湊鍵的值c、hdel 刪除乙個或多個字段

d、hgetall 獲取乙個雜湊是鍵值對的集合

e、lpush key value向鍊錶左側新增f、rpush key value向鍊錶右側新增

g、lpop key 從左邊移出乙個元素

h、rpop key 從右邊移出乙個元素

i、keys * 返回所有的key 可以加*通配

j、exists key判斷string型別乙個key是否存在 如果存在返回1 否則返回0

Redis中的常用命令哪些?

a hset 儲存乙個雜湊鍵值對的集合 b hget獲取乙個雜湊鍵的值c hdel 刪除乙個或多個字段 d hgetall 獲取乙個雜湊是鍵值對的集合 e lpush key value向鍊錶左側新增f rpush key value向鍊錶右側新增g lpop key 從左邊移出乙個元素 h rpo...

Redis中的常用命令哪些?

a hset 儲存乙個雜湊鍵值對的集合 b hget獲取乙個雜湊鍵的值c hdel 刪除乙個或多個字段 d hgetall 獲取乙個雜湊是鍵值對的集合 e lpush key value向鍊錶左側新增 f rpush key value向鍊錶右側新增 g lpop key 從左邊移出乙個元素 h r...

Redis中的常用命令哪些?

a hset 儲存乙個雜湊鍵值對的集合 b hget獲取乙個雜湊鍵的值c hdel 刪除乙個或多個字段 d hgetall 獲取乙個雜湊是鍵值對的集合 e lpush key value向鍊錶左側新增f rpush key value向鍊錶右側新增 g lpop key 從左邊移出乙個元素 h rp...