Package flickyou :: Package backend :: Module utils :: Class TokenCache

Class TokenCache

source code

object --+
         |
        TokenCache

Represents the cache of the token.

It stores on the file system.

Instance Methods
 
__init__(self, api_key, base_path='/Users/rhymes')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get(self)
Gets the token from the cache.
source code
 
put(self, token)
Puts a new token in the cache overwriting the old one if any.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, api_key, base_path='/Users/rhymes')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)