cache: fix documentation showing MTLabel instead of Label

This commit is contained in:
Mathieu Virbel 2011-02-12 08:16:34 +01:00
parent 48d0267c3b
commit 86cbc8e5d8
1 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ of 5 seconds::
Cache.register('mycache', limit=10, timeout=5)
# create an object + id
label = 'objectid'
instance = MTLabel(label=label)
Cache.append('mycache', label, instance)
text = 'objectid'
instance = Label(text=text)
Cache.append('mycache', text, instance)
# retrieve the cached object
instance = Cache.get('mycache', label)