Redis provides two functions for removing keys from the database: del and unlink.
The del function removes one or more keys from the database. The del command causes Redis to immediately reclaim the memory for the deleted key on the current thread of execution. The execution time for del is proportional to the number of individual elements deleted from all the keys.
The unlink function acts like the del command, it removes one or more keys from the database. However, unlike the del command, any memory used by those keys is reclaimed asynchronously on another thread.