membercache

package
v0.0.0-...-2e8e066 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache represents a threadsafe DFSR member configuration cache.

func New

func New() *Cache

New returns a new threadsafe DFSR member configuration cache.

func (*Cache) Retrieve

func (mc *Cache) Retrieve(dn string) (member dfsr.MemberInfo, ok bool)

Retrieve returns the cached DFSR member configuration data for the given distinguished name. If the data is not present in the cache then ok will be false.

func (*Cache) Set

func (mc *Cache) Set(member dfsr.MemberInfo)

Set saves the given DFSR member configuration data in the cache.

Jump to

Keyboard shortcuts

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