Like the setlock command using Redis.