rasstaggregator v1.0.0-beta1 RaSStaggregator.Cache
Summary
Functions
Removes all entries from the ETS table
Gets feed entries from the ETS table
Saves feed entries into ETS
Functions
Removes all entries from the ETS table.
Examples
iex> feed = %RaSStaggregator.Feed{id: :example_feed_3, url: "http://example.com/some_feed"}
iex> RaSStaggregator.Cache.save feed.id, []
true
iex> RaSStaggregator.Cache.find feed.id
[]
iex> RaSStaggregator.Cache.clear
true
iex> RaSStaggregator.Cache.find feed.id
nil
Gets feed entries from the ETS table.
Parameters
feed
- A feed struct.
Examples
iex> feed = %RaSStaggregator.Feed{id: :example_feed_2, url: "http://example.com/some_feed"}
iex> RaSStaggregator.Cache.find feed.id
nil
iex> RaSStaggregator.Cache.save feed.id, []
true
iex> RaSStaggregator.Cache.find feed.id
[]
iex> RaSStaggregator.Cache.find :non_existing
nil