Added ICacheKeyValue interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 13:55:47 +0200
changeset 99 2d076b2b485a
parent 98 2bc1e87c3155
child 100 119b9c2f3022
Added ICacheKeyValue interface
src/pyams_utils/interfaces/__init__.py
--- a/src/pyams_utils/interfaces/__init__.py	Tue Jun 20 16:40:40 2017 +0200
+++ b/src/pyams_utils/interfaces/__init__.py	Wed Jul 12 13:55:47 2017 +0200
@@ -18,6 +18,7 @@
 # import interfaces
 
 # import packages
+from zope.interface import Interface
 
 
 #
@@ -65,3 +66,7 @@
 
 class MissingRequestError(Exception):
     """Error raised when no request is available"""
+
+
+class ICacheKeyValue(Interface):
+    """Interface used to get string representation of a given object as cache key"""