Tag Archives: cache

Using Hashes as Caches

One of the coolest features of Ruby’s Hash class is that you can customize how it behaves when it can’t find a key. Stupid example: # Everybody knows that you can communicate with foreigners by # speaking loudly and slowly … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment