
    Ag                     0    d Z ddlmZ d Z G d de      Zy)z.gRPC's APIs for TLS Session Resumption support    )cygrpcc                 >    t        t        j                  |             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)capacitys    T/var/www/openai/venv/lib/python3.12/site-packages/grpc/experimental/session_cache.pyssl_session_cache_lrur
      s     755h?@@    c                       e Zd ZdZd Zd Zy)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                     || _         y N)_cache)selfcaches     r	   __init__zSSLSessionCache.__init__)   s	    r   c                 ,    t        | j                        S r   )intr   )r   s    r	   __int__zSSLSessionCache.__int__,   s    4;;r   N)__name__
__module____qualname____doc__r   r    r   r	   r   r   "   s     r   r   N)r   grpc._cythonr   r   r
   objectr   r   r   r	   <module>r      s    5 *A f  r   