INNER CODE UNIT · Go

main

philippgille/gokv · docs.go:22

	func main() {
		options := redis.DefaultOptions // Address: "localhost:6379", Password: "", DB: 0

		// Create client
		client, err := redis.NewClient(options)
		if err != nil {
			panic(err)
		}
		defer client.Close()

		// Store, retrieve, print and delete a value
		interactWithStore(client)
	}

	// interactWithStore stores, retrieves, prints and deletes a value.
	// It's completely independent of the store implementation.
	func interactWithStore(store gokv.Store) {
		// Store value

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…