mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
Merge remote-tracking branch 'refs/remotes/origin/dev'
This commit is contained in:
commit
aefaff1297
|
@ -35,7 +35,6 @@ func (s *Store) Get(key string) interface{} {
|
|||
if value, found := s.values[key]; found {
|
||||
return value
|
||||
}
|
||||
s.mu.Unlock()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -109,7 +108,7 @@ func (s *Store) SetLastAccessedTime(lastacc time.Time) {
|
|||
s.lastAccessedTime = lastacc
|
||||
}
|
||||
|
||||
// Destroy
|
||||
// Destroy deletes all keys
|
||||
func (s *Store) Destroy() {
|
||||
// clears without provider's update.
|
||||
s.mu.Lock()
|
||||
|
|
|
@ -95,7 +95,6 @@ func (s *Store) VisitAll(cb func(k string, v interface{})) {
|
|||
func (s *Store) Get(key string) interface{} {
|
||||
Provider.Update(s.sid)
|
||||
if value, found := s.values[key]; found {
|
||||
s.mu.Unlock()
|
||||
return value
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user