관리-도구
편집 파일: redis_cache.cpython-35.pyc
��ReX � @ sJ d d l m Z d d l m Z d d l m Z Gd d � d e � Z d S)� )�division)�datetime)� BaseCachec @ s[ e Z d Z d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z d S)� RedisCachec C s | | _ d S)N)�conn)�selfr � r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py�__init__ s zRedisCache.__init__c C s | j j | � S)N)r �get)r �keyr r r r s zRedisCache.getNc C sR | s | j j | | � n2 | t j � } | j j | t | j � � | � d S)N)r �setr �utcnow�setex�int� total_seconds)r r �value�expiresr r r r s zRedisCache.setc C s | j j | � d S)N)r �delete)r r r r r r s zRedisCache.deletec C s. x'