cache - ActiveState ActiveGo 1.8
...

Package cache

import "github.com/micro/go-micro/selector/cache"
Overview
Index

Overview ▾

Variables

var (
    DefaultTTL = time.Minute
)

func NewSelector

func NewSelector(opts ...selector.Option) selector.Selector

func TTL

func TTL(t time.Duration) selector.Option

Set the cache ttl