Documentation
¶
Overview ¶
Package cache provides a cache to query stock measures, without exceeding free usage of the quandl webservice. Cache is implemented as a sqlite db in a local file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is the DB access object used to cach or retrieve data.
func NewCache ¶
func NewCache(conf configuration.Conf) *Cache
NewCache creates a new file-based cache, locally.
func NewMemoryCache ¶
func NewMemoryCache(conf configuration.Conf) *Cache
NewMemoryCache creates a Cache in memory. Mainly used for testing.
func (*Cache) ListTickers ¶
ListTickers will list the tickers managed in the cache in a thread safe way.
func (*Cache) MostRecent ¶
MostRecent is the most recent date for that ticker in the database.
Click to show internal directories.
Click to hide internal directories.