Documentation ¶
Index ¶
Constants ¶
View Source
const CacheDuration = 6 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func RetrieveInitialUrl ¶
We need to retrieve the original URL from the shortened URL.
func SaveUrlMapping ¶
We need to save the mapping between the original URL and the shortened URL.
Types ¶
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
Define the struct wrapper around raw redis client
func InitStore ¶
func InitStore() *StorageService
Initialize the store service and return a store pointer
Click to show internal directories.
Click to hide internal directories.