def __init__(self, cache_manager, familly=None, discriminant=None,
                 arguments=False, cache_duration=None):
        """Anotaton to cache resources.

           Keyword arguments:
           cache_manager    -- instance of a CacheManager that will store all data.
           familly          -- each kind of resource must have its own kind of familly.
           discriminant     -- how to store different data in the same familly.
                               it will be used to compute a different cache key.
           arguments        -- add all the arguments (query params) of the
                               current function as discriminant for cache key
           cache_duration   -- Time to live for the cache.
        """
        self.cman = cache_manager
        self.familly = familly
        self.discriminant = discriminant
        self.arguments = arguments
        self.cache_duration = cache_duration
def __init__ ( self , cache_manager , familly = None , discriminant = None , arguments = False , cache_duration = None ) : self . cman = cache_manager self . familly = familly self . discriminant = discriminant self . arguments = arguments self . cache_duration = cache_duration
Anotaton to cache resources.

           Keyword arguments:
           cache_manager    -- instance of a CacheManager that will store all data.
           familly          -- each kind of resource must have its own kind of familly.
           discriminant     -- how to store different data in the same familly.
                               it will be used to compute a different cache key.
           arguments        -- add all the arguments (query params) of the
                               current function as discriminant for cache key
           cache_duration   -- Time to live for the cache.