Documentation
¶
Overview ¶
A quick and dirty implementation to cache in mongodb
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoCacheHandler ¶
type MongoCacheHandler struct {
// contains filtered or unexported fields
}
func NewMongoCacheHandler ¶
func NewMongoCacheHandler(col *mgo.Collection) (mch *MongoCacheHandler, err error)
func (*MongoCacheHandler) Handle ¶
func (mch *MongoCacheHandler) Handle(info api.RequestCommandInfo, th api.TransportHandler, req *api.Request) (res api.Response)
Implements TransportCacheHandler func(RequestCommandInfo, TransportHandler, *Request) (Response)
Click to show internal directories.
Click to hide internal directories.