sql >> データベース >  >> NoSQL >> Redis

プログラムでRedisQueue(rq)のQueue()を破棄/削除する

    次のことを試してください(redis-cliでこれらすべてを検証できます):

    yesterday.empty()  # This will wipe out rq:queue:yesterday and all of its contents
    del(yesterday)  # Deletes the variable itself
    r = Redis()
    r.srem('rq:queues', 'rq:queue:yesterday')  # Removed the entry from rq:queues set. The library unfortunately doesn't seem to clean this up by itself.
    



    1. mongodbのインデックス付き列で重複をすばやく見つける方法

    2. キーの値を合計するRedisのLuaスクリプト

    3. Spark、Python、MongoDBを連携させる

    4. MongoDBコンポジットキー