Documentation ¶
Overview ¶
Package memcached includes Memcached implementation of Gnomock Preset interface. This Preset can be passed to gnomock.StartPreset function to create a configured Memcached container to use in tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*P)
Option is an optional configuration of this Gnomock preset. Use available Options to configure the container.
func WithByteValues ¶
WithByteValues initializes Memcached with the provided key/value paris. These values never expire. Only byte slices are supported.
func WithValues ¶
WithValues initializes Memcached with the provided key/value pairs. These values never expire. Only strings are supported.
type P ¶
type P struct { Values map[string]string `json:"values"` ByteValues map[string][]byte `json:"byteValues"` Version string `json:"version"` }
P is a Gnomock Preset implementation for Memcached storage.
func (*P) Ports ¶
func (p *P) Ports() gnomock.NamedPorts
Ports returns ports that should be used to access this container.