o
    Š¨Êh–	  ã                   @   s2   d dl mZmZ G dd„ dƒZG dd„ deƒZdS )é    )ÚJSONDecoderÚJSONEncoderc                   @   sf   e Zd ZdZeƒ eƒ fdd„Zddd„Zdd„ Zd	d
„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zddd„ZdS )ÚRedisModuleCommandszoThis class contains the wrapper functions to bring supported redis
    modules into the command namespace.
    c                 C   s   ddl m} || ||d�}|S )z<Access the json namespace, providing support for redis json.é   )ÚJSON)ÚclientÚencoderÚdecoder)Újsonr   )Úselfr   r	   r   Újj© r   úM/var/www/html/env/lib/python3.10/site-packages/redis/commands/redismodules.pyr
   	   s   zRedisModuleCommands.jsonÚidxc                 C   ó   ddl m} || |d�}|S )ú@Access the search namespace, providing support for redis search.r   )ÚSearch©r   Ú
index_name)Úsearchr   )r   r   r   Úsr   r   r   Úft   ó   zRedisModuleCommands.ftc                 C   ó   ddl m} || d�}|S )z^Access the timeseries namespace, providing support for
        redis timeseries data.
        r   )Ú
TimeSeries©r   )Ú
timeseriesr   )r   r   r   r   r   r   Úts   s   
zRedisModuleCommands.tsc                 C   r   )úAccess the bloom namespace.r   )ÚBFBloomr   )Úbfr   )r   r   r    r   r   r   r    #   ó   
zRedisModuleCommands.bfc                 C   r   )r   r   )ÚCFBloomr   )r    r"   )r   r"   Úcfr   r   r   r#   +   r!   zRedisModuleCommands.cfc                 C   r   )r   r   )ÚCMSBloomr   )r    r$   )r   r$   Úcmsr   r   r   r%   3   r!   zRedisModuleCommands.cmsc                 C   r   )r   r   )Ú	TOPKBloomr   )r    r&   )r   r&   Útopkr   r   r   r'   ;   r!   zRedisModuleCommands.topkc                 C   r   )r   r   )ÚTDigestBloomr   )r    r(   )r   r(   Útdigestr   r   r   r)   C   r!   zRedisModuleCommands.tdigestc                 C   r   )úTAccess the graph namespace, providing support for
        redis graph data.
        r   )ÚGraph©r   Úname)Úgraphr+   )r   r   r+   Úgr   r   r   r.   K   ó   zRedisModuleCommands.graphN©r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r
   r   r   r    r#   r%   r'   r)   r.   r   r   r   r   r      s    

r   c                   @   s    e Zd Zddd„Zddd„ZdS )ÚAsyncRedisModuleCommandsr   c                 C   r   )r   r   )ÚAsyncSearchr   )r   r7   )r   r   r7   r   r   r   r   r   W   r   zAsyncRedisModuleCommands.ftc                 C   r   )r*   r   )Ú
AsyncGraphr,   )r.   r8   )r   r   r8   r/   r   r   r   r.   _   r0   zAsyncRedisModuleCommands.graphNr1   )r2   r3   r4   r   r.   r   r   r   r   r6   V   s    
r6   N)r
   r   r   r   r6   r   r   r   r   Ú<module>   s    R