view js/modules/cache.js @ 60:07d3d1560b93

added find a user functionality
author Atul Varma <avarma@mozilla.com>
date Sun, 25 Apr 2010 07:54:09 -0700
parents 0b71df72ebe1
children 55c1b3647357
line wrap: on
line source

Require.modules["cache"] = function(exports) {
  var cache = {};

  exports.set = function set(key, value) {
    cache[key] = value;
  };
  exports.get = function get(key) {
    return cache[key];
  };
};