Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connection ¶
Connection connects to redis once and returns the connection
func DeactivateURL ¶
DeactivateURL deactivates cache of an expired/deleted model.URL PS, this operation is always cached so Gone (410) can be served without db hit.
func LookupURL ¶
LookupURL looks up if certain short code is popular enough to be in cache It returns model.URL so the request can be served right way without db hit.
func SavePopularURL ¶
SavePopularURL saves a model.URL to cache If force is passed, it saves even if already exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.