Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeCache ¶
type EdgeCache struct {
// contains filtered or unexported fields
}
func NewEdgeCache ¶
func (*EdgeCache) GetAdjacent ¶
type GraphCache ¶
type GraphCache struct {
// contains filtered or unexported fields
}
func NewGraphCache ¶
func NewGraphCache(ttl time.Duration) GraphCache
func (*GraphCache) DumpEdge ¶
func (c *GraphCache) DumpEdge(edge model.Edge)
func (*GraphCache) DumpVertex ¶
func (c *GraphCache) DumpVertex(vertex model.Vertex)
func (*GraphCache) Flush ¶
func (c *GraphCache) Flush()
func (*GraphCache) LoadVertex ¶
func (c *GraphCache) LoadVertex(key string) (model.Vertex, bool)
type ValueVertex ¶
type ValueVertex struct { K string V interface{} }
func (*ValueVertex) Key ¶
func (v *ValueVertex) Key() string
func (*ValueVertex) Value ¶
func (v *ValueVertex) Value() interface{}
type VertexCache ¶
type VertexCache struct {
// contains filtered or unexported fields
}
func NewVertexCache ¶
func NewVertexCache(ttl time.Duration) VertexCache
func (*VertexCache) Delete ¶
func (c *VertexCache) Delete(key string)
func (*VertexCache) Flush ¶
func (c *VertexCache) Flush()
Click to show internal directories.
Click to hide internal directories.