OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, cache_dir, format_control) |
def | get_path_for_link (self, link) |
def | get_ephem_path_for_link (self, link) |
def | get (self, link, package_name, supported_tags) |
def | get_cache_entry (self, link, package_name, supported_tags) |
![]() | |
def | __init__ (self, cache_dir, format_control, allowed_formats) |
Additional Inherited Members | |
![]() | |
cache_dir | |
format_control | |
allowed_formats | |
Wraps EphemWheelCache and SimpleWheelCache into a single Cache This Cache allows for gracefully degradation, using the ephem wheel cache when a certain link is not found in the simple wheel cache first.
def __init__ | ( | self, | |
cache_dir, | |||
format_control | |||
) |
def get | ( | self, | |
link, | |||
package_name, | |||
supported_tags | |||
) |
Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented from Cache.
def get_cache_entry | ( | self, | |
link, | |||
package_name, | |||
supported_tags | |||
) |
Returns a CacheEntry with a link to a cached item if it exists or None. The cache entry indicates if the item was found in the persistent or ephemeral cache.
def get_ephem_path_for_link | ( | self, | |
link | |||
) |
def get_path_for_link | ( | self, | |
link | |||
) |
Return a directory to store cached items in for link.
Reimplemented from Cache.