
    Ng                     8    d Z ddlmZ d Z G d de          ZdS )z.gRPC's APIs for TLS Session Resumption support    )cygrpcc                 D    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    [/var/www/html/ai-engine/env/lib/python3.11/site-packages/grpc/experimental/session_cache.pyssl_session_cache_lrur
      s     75h??@@@    c                       e Zd ZdZd Z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                     || _         d S 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      se    5 4 * * * * * *A A A         f          r   