OpenQuizz
Une application de gestion des contenus pédagogiques
Cache Class Reference
Inheritance diagram for Cache:
Collaboration diagram for Cache:

Public Member Functions

def __init__ (self, base)
 
def prefix_to_dir (self, prefix)
 
def clear (self)
 

Data Fields

 base
 

Detailed Description

A class implementing a cache for resources that need to live in the file system
e.g. shared libraries. This class was moved from resources to here because it
could be used by other modules, e.g. the wheel module.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  base 
)
Initialise an instance.

:param base: The base directory where the cache should be located.

Reimplemented in ResourceCache.

Member Function Documentation

◆ clear()

def clear (   self)
Clear the cache.

◆ prefix_to_dir()

def prefix_to_dir (   self,
  prefix 
)
Converts a resource prefix to a directory name in the cache.

Field Documentation

◆ base

base

The documentation for this class was generated from the following file: