Update module docs
This commit is contained in:
+4
-5
@@ -1,11 +1,10 @@
|
|||||||
defmodule LastFm.Feed do
|
defmodule LastFm.Feed do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Holds a in-memory cache of scrobbled tracks.
|
Persists scrobbled tracks in `MusicLibrary.Repo` and publishes feed updates.
|
||||||
|
|
||||||
Tracks are keyed and ASC ordered by their scrobbling unix timestamp. While this
|
Tracks are inserted into the `scrobbled_tracks` table with conflict handling on
|
||||||
is technically prone to collision, it's very unlikely for that to happen since
|
`[:scrobbled_at_uts, :title]` to avoid duplicates, then scrobble rules are applied
|
||||||
scrobbles are sequential events that occur over time - a user can likely only listen
|
to newly inserted rows.
|
||||||
to one track at a time, and the timestamp has second-level precision.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@insertable_fields [
|
@insertable_fields [
|
||||||
|
|||||||
Reference in New Issue
Block a user