(key string)
| 31 | } |
| 32 | |
| 33 | func (sc *EntryCache) Get(key string) (*ldap.Entry, bool) { |
| 34 | sc.lock.Lock() |
| 35 | defer sc.lock.Unlock() |
| 36 | entry, ok := sc.entries[key] |
| 37 | return entry, ok |
| 38 | } |
| 39 | |
| 40 | func (sc *EntryCache) Length() int { |
| 41 | sc.lock.Lock() |
no outgoing calls
no test coverage detected