Champlain.MemoryCache¶
- Subclasses:
None
Methods¶
- Inherited:
Champlain.TileCache (3), Champlain.MapSource (20), GObject.Object (37)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Maximal number of stored tiles |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Champlain.MemoryCache(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.MemoryCache
structure contains only private data and should be accessed using the provided APINew in version 0.8.
- classmethod new_full(size_limit, renderer)¶
- Parameters:
size_limit (
int
) – maximum number of tiles stored in the cacherenderer (
Champlain.Renderer
) – theChamplain.Renderer
used for tiles rendering
- Returns:
a constructed
Champlain.MemoryCache
- Return type:
Constructor of
Champlain.MemoryCache
.New in version 0.8.
- clean()¶
Cleans the contents of the cache.
New in version 0.8.
- get_size_limit()¶
- Returns:
maximum number of stored tiles
- Return type:
Gets the maximum number of tiles stored in the cache.
New in version 0.8.