a
    v=icý  ã                   @   s,   d Z ddlmZ dd„ ZG dd„ deƒZdS )z.gRPC's APIs for TLS Session Resumption supporté    )Úcygrpcc                 C   s   t t | ¡ƒS )a“  Creates an SSLSessionCache with LRU replacement policy

    Args:
      capacity: Size of the cache

    Returns:
      An SSLSessionCache with LRU replacement policy that can be passed as a value for
      the grpc.ssl_session_cache option to a grpc.Channel. SSL session caches are used
      to store session tickets, which clients can present to resume previous TLS sessions
      with a server.
    )ÚSSLSessionCacheÚ_cygrpcZSSLSessionCacheLRU)Úcapacity© r   úp/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/grpc/experimental/session_cache.pyÚssl_session_cache_lru   s    r   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )r   zµAn encapsulation of a session cache used for TLS session resumption.

    Instances of this class can be passed to a Channel as values for the
    grpc.ssl_session_cache option
    c                 C   s
   || _ d S ©N)Ú_cache)ÚselfÚcacher   r   r   Ú__init__)   s    zSSLSessionCache.__init__c                 C   s
   t | jƒS r	   )Úintr
   )r   r   r   r   Ú__int__,   s    zSSLSessionCache.__int__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   "   s   r   N)r   Zgrpc._cythonr   r   r   Úobjectr   r   r   r   r   Ú<module>   s   