redis-friendships
redis-friendships copied to clipboard
Destroying user
Should probably be a cleanup method in after_destroy in user.rb, so the redis data is removed after destroying a User.
Excellent, totally forgot about this. Will do that. BUT.... Method should be called in a background job. So I'm just doing the method, and the user can call it in a after_destroy if he wants to, or add it to a backround job.
Sure, but is it really that big of a job to do right away? A "REDIS.del key" is really fast no?