[Opensrf-commits] r1187 - trunk/src/python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 27 17:02:51 EST 2007
Author: erickson
Date: 2007-12-27 16:40:04 -0500 (Thu, 27 Dec 2007)
New Revision: 1187
Modified:
trunk/src/python/osrf/cache.py
Log:
added a static method to see if there is already a globally connected cache client
Modified: trunk/src/python/osrf/cache.py
===================================================================
--- trunk/src/python/osrf/cache.py 2007-12-27 21:05:52 UTC (rev 1186)
+++ trunk/src/python/osrf/cache.py 2007-12-27 21:40:04 UTC (rev 1187)
@@ -57,4 +57,9 @@
osrf.log.log_debug("cache: connecting to servers %s" % str(svrs))
_client = memcache.Client(svrs, debug=1)
+ @staticmethod
+ def get_client():
+ global _client
+ return _client
+
More information about the opensrf-commits
mailing list