Set associates value with the key in session storage
(key string, value interface{})
| 149 | |
| 150 | // Set associates value with the key in session storage |
| 151 | func (s *Session) Set(key string, value interface{}) { |
| 152 | s.Lock() |
| 153 | defer s.Unlock() |
| 154 | |
| 155 | s.data[key] = value |
| 156 | } |
| 157 | |
| 158 | // HasKey decides whether a key has associated value |
| 159 | func (s *Session) HasKey(key string) bool { |
no outgoing calls