Permalink
Browse files

use separate buckets for different users

  • Loading branch information...
sigma committed Dec 6, 2011
1 parent a783a2f commit 46f2bad609711f346d785f1a03d82c6347603918
Showing with 4 additions and 4 deletions.
  1. +4 −4 gh-api.el
View
@@ -54,7 +54,9 @@
(and (eieio-object-p cache)
(object-of-class-p cache 'gh-cache)))
(oset obj :cache (funcall (oref obj cache-cls)
(format "gh/%s" (symbol-name api)))))
(format "gh/%s/%s"
(symbol-name api)
(oref (oref obj :auth) :username)))))
obj))
(defmethod gh-api-expand-resource ((api gh-api)
@@ -169,9 +171,7 @@
(cache (oref api :cache))
(key (and cache
(member method (oref cache safe-methods))
(list (format "%s@%s"
(oref (oref api :auth) :username)
resource)
(list resource
method
transformer)))
(value (and key (pcache-get cache key)))

0 comments on commit 46f2bad

Please sign in to comment.