This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReJSON: | |
def __init__(self, _redis): | |
self.redis = _redis | |
async def set(self, key, path, jsonable, nx=False, xx=False): | |
""" | |
Set the JSON value at ``key`` under the ``path`` to ``jsonable`` | |
``nx`` if set to True, set ``value`` only if it does not exist | |
``xx`` if set to True, set ``value`` only if it exists | |
""" |