Class: Cache

Cache(followingLists, followerLists)

new Cache(followingLists, followerLists)

Parameters:
Name Type Description
followingLists Array.<FollowingList>
followerLists Array.<FollowerList>
Properties:
Name Type Attributes Default Description
followingLists Array.<FollowingList> <optional>
[]
followerLists Array.<FollowerList> <optional>
[]
Source:

Methods

(static) empty() → {Cache}

Source:
Returns:
empty cache
Type
Cache

addFollowerList(user, followers) → {Cache}

Parameters:
Name Type Description
user User
followers Array.<User>
Source:
Returns:
Type
Cache

addFollowingList(user, following) → {Cache}

Parameters:
Name Type Description
user User
following Array.<User>
Source:
Returns:
Type
Cache

findFollowerList(user) → {Array.<User>}

Parameters:
Name Type Description
user User
Source:
Returns:
list of people who the specified user follows
Type
Array.<User>

findFollowingList(user) → {Array.<User>}

Parameters:
Name Type Description
user User
Source:
Returns:
list of people who the specified user follows
Type
Array.<User>