Skip to content

Instantly share code, notes, and snippets.

@cohuman
Created May 5, 2012 00:41
Show Gist options
  • Save cohuman/2598812 to your computer and use it in GitHub Desktop.
Save cohuman/2598812 to your computer and use it in GitHub Desktop.
rake task to flush our redis cache
desc "flush the cache"
task :flush_cache do
puts <<-HERE
_
.----------/ |<=== floppy disk
/ | |
/ /| | _________
/ / | | | .-----. |
/___________/ /| | |=| |-|
[____________]/ | | |~|_____|~|
| ___ | | | '-| |-'
| / _) | | | |.....|
function ======>|.' | | | | |<=== application
key | | | | input |.....| software
| | | | `--._|
main =>| | | | |
storage | | | ;______|_________________
| | |.' ____\\|/_______________ `.
| | /| (______________________) )<== user
|____________|/ \\___________________________/ interface
'--||----: `'''''.__ |
|| jgs `""";"""-.'-._ <== normal flow | central
|| | `-. `'._of operation /<== processing
|| || | `\\ '-. / unit
surge ().-. | | : /`
control ==>(_((X)) | .-. : <======= output
device '-' \\ | \\ ; |________
|| `\\ \\|/ '-..-' / /_\\ /|
|| /`-.____ | / /
|| / _ /_____________|_ / /_
|| peripherals ==>/_\\___________________/_\\__/ /~ )__
|| (hardware) |____________________________|/ ~ )
|| (__~ ~ ~(~~`
|| overflow (input/output error) ===> (_~_ ~ ~_ `)
.-''-. `--~-' '`
/______\\ _________
[____] <=== de-bugging tool _|`---------`|
(C| |
back-up ===> \\ /
|\\\\\\ ///| `=========`
| \\\\V// |
| |~| |
| |=| | <=== supplemental data
| | | |
| | | | (()____
\\ |=| / mouse ===> (' `\\_______,
\\|_|/ `,,---,,'
HERE
Kernel.environment.redis.flushall
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment