Created
May 5, 2012 00:41
rake task to flush our redis cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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