HEXISTS

Redis 開発者教育の申込 Redis 定期点検/技術サポート
Redis Technical Support
Redis エンタープライズサーバー
Redis Enterprise Server

field があるかを照会

使い方は hexists key field です。
あれば 1、なければ 0 を返します。

Example

コマンド>hexists user-1 email
結果>1
コマンド>hexists user-1 xxx
結果>0


構文

HEXISTS key field

  • このコマンドは version 2.0.0 から使用できます。
  • 時間計算量は O(1) です。
関連コマンド HSET, HMGET, MSET, LPUSH, SADD, ZSET
Clients for Java Jedis, Lettuce, Redisson
Clients for C Hiredis

<< HINCRBYFLOAT HEXISTS HSETNX >>

Email 返事がかかってなれば、メールでお知らせします。