memcache

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterSpec

type ClusterSpec struct {
	NodeCount   float64                `json:"nodeCount" validate:"integer,min=1,max=8,required"`
	NodeSizeGiB float64                `json:"nodeSizeGiB" validate:"min=0.25,max=4,precision=2,required"`
	Version     ClusterSpecVersion     `json:"version,omitzero" validate:"valid=1.6.17|1.5.22"`
	Options     *ClusterSpecOptions    `json:"options,omitzero" validate:"default={}"`
	Locations   []MemcacheLocationLink `json:"locations,omitzero" validate:"sort,min=1,dedupe"`
}

type ClusterSpecOptions

type ClusterSpecOptions struct {
	EvictionsDisabled  *bool    `json:"evictionsDisabled,omitzero" validate:"default=true"`
	IdleTimeoutSeconds *float64 `json:"idleTimeoutSeconds,omitzero" validate:"integer,min=0,default=600"`
	MaxItemSizeKiB     *float64 `json:"maxItemSizeKiB,omitzero" validate:"integer,min=512,default=1024"`
	MaxConnections     *float64 `json:"maxConnections,omitzero" validate:"integer,min=10,default=1024"`
}

type ClusterSpecVersion

type ClusterSpecVersion string
const (
	ClusterSpecVersion1617 ClusterSpecVersion = "1.6.17"
	ClusterSpecVersion1522 ClusterSpecVersion = "1.5.22"
)

type ClusterStatus

type ClusterStatus map[string]any

type MemcacheCluster

type MemcacheCluster struct {
	Id           string              `json:"id,omitzero" validate:"uuid,readOnly"`
	Name         base.Name           `json:"name,omitzero"`
	Kind         base.Kind           `json:"kind,omitzero"`
	Version      *float64            `json:"version,omitzero" validate:"positive,integer,readOnly"`
	Description  string              `json:"description,omitzero" validate:"trim,max=250,allow="`
	Tags         MemcacheClusterTags `json:"tags,omitzero" validate:"default={}"`
	Created      string              `json:"created,omitzero" validate:"date,readOnly"`
	LastModified string              `json:"lastModified,omitzero" validate:"date,readOnly"`
	Links        base.Links          `json:"links,omitzero" validate:"readOnly"`
	Spec         MemcacheClusterSpec `json:"spec" validate:"required"`
	Status       ClusterStatus       `json:"status,omitzero"`
}

MemcacheCluster ports `MemcacheCluster = Base.keys({spec: required, status})`.

func (MemcacheCluster) ValidationRule

func (MemcacheCluster) ValidationRule() *validate.Rule

ValidationRule reflects MemcacheCluster (Base.keys({spec: required, status})).

type MemcacheClusterSpec

type MemcacheClusterSpec struct {
	NodeCount   float64                     `json:"nodeCount" validate:"integer,min=1,max=8,required"`
	NodeSizeGiB float64                     `json:"nodeSizeGiB" validate:"min=0.25,max=4,precision=2,required"`
	Version     MemcacheClusterSpecVersion  `json:"version,omitzero" validate:"valid=1.6.17|1.5.22"`
	Options     *MemcacheClusterSpecOptions `json:"options,omitzero" validate:"default={}"`
	Locations   []MemcacheLocationLink      `json:"locations,omitzero" validate:"sort,min=1,dedupe"`
}

type MemcacheClusterSpecOptions

type MemcacheClusterSpecOptions struct {
	EvictionsDisabled  *bool    `json:"evictionsDisabled,omitzero" validate:"default=true"`
	IdleTimeoutSeconds *float64 `json:"idleTimeoutSeconds,omitzero" validate:"integer,min=0,default=600"`
	MaxItemSizeKiB     *float64 `json:"maxItemSizeKiB,omitzero" validate:"integer,min=512,default=1024"`
	MaxConnections     *float64 `json:"maxConnections,omitzero" validate:"integer,min=10,default=1024"`
}

type MemcacheClusterSpecVersion

type MemcacheClusterSpecVersion string
const (
	MemcacheClusterSpecVersion1617 MemcacheClusterSpecVersion = "1.6.17"
	MemcacheClusterSpecVersion1522 MemcacheClusterSpecVersion = "1.5.22"
)

type MemcacheClusterTags

type MemcacheClusterTags = base.Tags

MemcacheClusterTags aliases base.Tags so the reflection base-type registry resolves it to the shared TagsRule.

type MemcacheLocationLink string

MemcacheLocationLink is the constrained element type for spec.locations — LocalLink.custom(toKind('location')) (registered → LocalLinkRule+ToKind).

func (MemcacheLocationLink) ValidationRule

func (MemcacheLocationLink) ValidationRule() *validate.Rule

ValidationRule makes spec.locations elements self-validating: LocalLink expanded then kind-checked to 'location' — LocalLink.custom(toKind('location')) (memcache.ts), formerly RegisterType(MemcacheLocationLink, LocalLinkRule+ToKind).

type MemcacheOptions

type MemcacheOptions struct {
	EvictionsDisabled  *bool    `json:"evictionsDisabled,omitzero" validate:"default=true"`
	IdleTimeoutSeconds *float64 `json:"idleTimeoutSeconds,omitzero" validate:"integer,min=0,default=600"`
	MaxItemSizeKiB     *float64 `json:"maxItemSizeKiB,omitzero" validate:"integer,min=512,default=1024"`
	MaxConnections     *float64 `json:"maxConnections,omitzero" validate:"integer,min=10,default=1024"`
}

Jump to

Keyboard shortcuts

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