Normally, I get the key set then use a look to delete each key/value pair.
Is it possible to just delete all keys via pattern?
ie:
Del sample_pat
You can do it with the Redisson in one line:
redisson.getKeys().deleteByPattern(pattern)