url

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() def.URLCache

Init is a function that initializes a new cache. It creates a new Redis client with the server address, password, and database number specified in the application's configuration. It then pings the Redis server to ensure the connection is successful. If the connection fails, it logs a fatal error. If the connection is successful, it returns a new cache with the Redis client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL