Tag:Bo Dian

  • Common application scenarios of redis


    String store Click count function, incr key:001 Self increasing, such as link hits Distributed lock set key value NX PX 1000 / / set random value and set expiration time through setnx. If the value is written successfully, the lock is added successfully. Session sharing in cluster environment List store Often used in queues, stacks, […]