mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-07 08:23:41 +00:00
test access store
This commit is contained in:
parent
e0e130a12c
commit
feb489502a
@ -50,6 +50,7 @@ func (l *AccessStore) AccessFor(user user.Info) *AccessSet {
|
|||||||
val, ok := l.cache.Get(cacheKey)
|
val, ok := l.cache.Get(cacheKey)
|
||||||
if ok {
|
if ok {
|
||||||
logrus.Infof("******* AccessFor got cache via key: %s, user: %+v", cacheKey, user)
|
logrus.Infof("******* AccessFor got cache via key: %s, user: %+v", cacheKey, user)
|
||||||
|
logrus.Infof("******* cache key: %s, %+v", cacheKey, l.cache)
|
||||||
as, _ := val.(*AccessSet)
|
as, _ := val.(*AccessSet)
|
||||||
return as
|
return as
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user