
    ޝi	                     >    d dl mZmZ  G d d      Z G d de      Zy)    )JSONDecoderJSONEncoderc                   d    e Zd ZdZ e        e       fdZddZd Zd Z	d Z
d Zd Zd	 Zdd
Zy)RedisModuleCommandszoThis class contains the wrapper functions to bring supported redis
    modules into the command namespace.
    c                 (    ddl m}  || ||      }|S )z<Access the json namespace, providing support for redis json.   )JSON)clientencoderdecoder)jsonr	   )selfr   r   r	   jjs        Y/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/redis/commands/redismodules.pyr   zRedisModuleCommands.json	   s     	w@	    c                 &    ddl m}  || |      }|S )@Access the search namespace, providing support for redis search.r   )Searchr
   
index_name)searchr   )r   r   r   ss       r   ftzRedisModuleCommands.ft   s     	#$:6r   c                 $    ddl m}  ||       }|S )z^Access the timeseries namespace, providing support for
        redis timeseries data.
        r   )
TimeSeriesr
   )
timeseriesr   )r   r   r   s      r   tszRedisModuleCommands.ts   s    
 	+d#r   c                 $    ddl m}  ||       }|S )Access the bloom namespace.r   )BFBloomr   )bfr!   )r   r!   r"   s      r   r"   zRedisModuleCommands.bf#        	 D!	r   c                 $    ddl m}  ||       }|S )r    r   )CFBloomr   )r"   r%   )r   r%   cfs      r   r&   zRedisModuleCommands.cf+   r#   r   c                 $    ddl m}  ||       }|S )r    r   )CMSBloomr   )r"   r(   )r   r(   cmss      r   r)   zRedisModuleCommands.cms3   s     	!d#
r   c                 $    ddl m}  ||       }|S )r    r   )	TOPKBloomr   )r"   r+   )r   r+   topks      r   r,   zRedisModuleCommands.topk;   s     	"%r   c                 $    ddl m}  ||       }|S )r    r   )TDigestBloomr   )r"   r.   )r   r.   tdigests      r   r/   zRedisModuleCommands.tdigestC   s     	%d+r   c                 &    ddl m}  || |      }|S )TAccess the graph namespace, providing support for
        redis graph data.
        r   )Graphr
   name)graphr2   )r   r   r2   gs       r   r5   zRedisModuleCommands.graphK   s    
 	!J/r   Nidx)__name__
__module____qualname____doc__r   r   r   r   r   r"   r&   r)   r,   r/   r5    r   r   r   r      s?     '=+- r   r   c                       e Zd ZddZddZy)AsyncRedisModuleCommandsc                 &    ddl m}  || |      }|S )r   r   )AsyncSearchr   )r   rA   )r   r   rA   r   s       r   r   zAsyncRedisModuleCommands.ftW   s     	(t
;r   c                 &    ddl m}  || |      }|S )r1   r   )
AsyncGraphr3   )r5   rC   )r   r   rC   r6   s       r   r5   zAsyncRedisModuleCommands.graph_   s    
 	&d4r   Nr7   )r9   r:   r;   r   r5   r=   r   r   r?   r?   V   s    r   r?   N)r   r   r   r   r?   r=   r   r   <module>rD      s"    )O Od2 r   