redis

package
v0.0.0-...-46fbbb1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2022 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	RedisPool *redis.Pool
	// Time for the item living in the cache.
	LivingTime int64
}

Client for handing data in cache.

func (*Client) Read

func (c *Client) Read(ctx context.Context, id core.ArtifactID, options ...data.ReadOption) ([]types.Store, error)

Read implements cache.Client.

func (*Client) Write

func (c *Client) Write(ctx context.Context, id core.ArtifactID, data []types.Store) error

Write implements cache.Client.

Jump to

Keyboard shortcuts

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