• antirez's avatar
    DEBUG POPULATE two args form implemented. · a37f8ec8
    antirez authored
    The old DEBUG POPULATE form for automatic creation of test keys is:
    
        DEBUG POPULATE <count>
    
    Now an additional form is available:
    
        DEBUG POPULATE <count> <prefix>
    
    When prefix is not specified, it defaults to "key", so the keys are
    named incrementally from key:0 to key:<count-1>. Otherwise the specified
    prefix is used instead of "key".
    
    The command is useful in order to populate different Redis instances
    with key names guaranteed to don't collide. There are other debugging
    uses, for example it is possible to add additional N keys using a count
    of N and a random prefix at every call.
    a37f8ec8
debug.c 34.7 KB