복붙노트

[REDIS] 레디 스-평 : StrictRedis ()와 레디 스 ()의 차이점은 무엇입니까?

REDIS

레디 스-평 : StrictRedis ()와 레디 스 ()의 차이점은 무엇입니까?

나는 일부 데이터를 캐싱 레디 스-평을 사용하려면,하지만 난 redis.StrictRedis ()와 redis.Redis ()의 차이의 적절한 설명을 찾을 수 없습니다. 그들은 동일?

또한, 나는 redis.StrictRedis에 대한 명확한 문서 () 레디 스 파이썬 문서 도구의 인수를 찾을 수 없습니다. 어떤 생각?

해결법

  1. ==============================

    1.이 꽤 명확한 것 같다 :

    이 꽤 명확한 것 같다 :

     redis-py exposes two client classes that implement these commands
     The StrictRedis class attempts to adhere to the official command syntax.
    

    In addition to the changes above, the Redis class, a subclass of StrictRedis,
    overrides several other commands to provide backwards compatibility with older
    versions of redis-py
    

    당신은 이전 버전과의 호환성을 필요하십니까? 사용 레디 스. 상관 없어? 사용 StrictRedis.

    2017-03-31

    github.com 링크가 인용에서 다음은 이전 버전과의 호환성의 세부 사항은 다음과 같습니다

  2. ==============================

    2.그것은 오래된 질문이지만 구글에서 검색 한 후이 질문에 도달 할 누군가를 위해 :

    그것은 오래된 질문이지만 구글에서 검색 한 후이 질문에 도달 할 누군가를 위해 :

    레디 스-PY의 추가 정보 (링크)에서 :

    여기 StrictRedis (링크)를 정의 레디 스-PY 코드의 라인은 다음과 같습니다

    StrictRedis = Redis
    
  3. from https://stackoverflow.com/questions/19021765/redis-py-whats-the-difference-between-strictredis-and-redis by cc-by-sa and MIT license