3 ms·
Great article, thanks for sharing! Would have loved a few code samples to go along but your descriptions did an impressive job describing what's going on. One
by rattray 12y ago
Great article, thanks for sharing! Would have loved a few code samples to go along but your descriptions did an impressive job describing what's going on.
One question: what does that "global Backbone cache" look like?
- lopatin 12y agoThanks! Glad to hear it was easy to follow and didn't ramble. Our backbone model cache is a simple module that you request backbone model instances from by a unique key. You also pass initialization options in case it doesn't exist in the cache. The instance will be constructed, saved in the cache, and returned. You can pass a TTL also. It's not great, feels clunky, but it works.