o
    i                     @   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_cygrpcSSLSessionCacheLRU)capacity r   \/home/ubuntu/veenaModal/venv/lib/python3.10/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   zAn 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__)      
zSSLSessionCache.__init__c                 C   s
   t | jS r
   )intr   )r   r   r   r   __int__,   r   zSSLSessionCache.__int__N)__name__
__module____qualname____doc__r   r   r   r   r   r   r   "   s    r   N)r   grpc._cythonr   r   r	   objectr   r   r   r   r   <module>   s   