1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 20:30:54 +00:00
Commit Graph

34 Commits

Author SHA1 Message Date
BurtonQin
cfdd1cd5be cache, context, session: add lock to fix inconsistent field protection 2020-02-10 21:49:46 +08:00
Edward.Yang
39bd40e512 Incr和Decr应该改成排它锁,否则在并发的时候会出现非期望的结果值 2019-05-01 13:10:21 +08:00
Iskander (Alex) Sharipov
dc07fa7085
cache: remove excessive type assertions
Assign type switch variable to get properly-typed value
inside case clauses.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-01-24 08:52:30 +03:00
Dennis
9e036bcab5
Update memory.go 2018-11-13 14:43:23 +08:00
JessonChan
34a812d45f typo fixed
#3260
2018-08-07 12:08:15 +08:00
moqiancong
79f60274a0 fix cache/memory fatal error: concurrent map iteration and map write 2017-06-16 01:26:55 +08:00
astaxie
9adf20d72e gofmt -s 2016-01-17 23:57:07 +08:00
youngsterxyf
0b0904db13 for issue #1530, accept @JessonChan's suggestion 2016-01-08 20:16:58 +08:00
youngsterxyf
bb43d3a78c fix #1530 2016-01-08 13:47:14 +08:00
JessonChan
3821b2cb26 createdTime typo fixed 2016-01-07 09:37:50 +08:00
JessonChan
8aed4c13d7 isExist func will check if the value is expired 2016-01-07 09:36:23 +08:00
JessonChan
6465dbd703 no more goroutine ,i will be GCed at a gc goroutine 2016-01-07 09:28:40 +08:00
JessonChan
98e0626f0c rename vals 2016-01-07 09:25:06 +08:00
JessonChan
b0b9812de6 extract a expire fun 2016-01-07 09:13:47 +08:00
JessonChan
eff200e014 modify as xuxiaohei suggest
https://github.com/astaxie/beego/issues/1259
2016-01-07 09:08:00 +08:00
JessonChan
8832334d6a tiny fix for error description and comment 2016-01-06 15:12:25 +08:00
JessonChan
0b39091292 mem cache put function fixed
when a expire duration==0,it means forever
https://github.com/astaxie/beego/issues/1260
2016-01-06 15:05:29 +08:00
astaxie
a03fa0fb73 improve cache modules. support mulit instances 2016-01-04 10:50:04 +08:00
astaxie
d7aaf2ebeb golint cache package 2015-09-09 00:15:03 +08:00
weizili.build17
970f0b460c Add GetMulti method for Cache interface 2015-06-07 21:33:01 +08:00
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
fuxiaohei
0ff058bd25 code style simplify 2014-07-11 10:01:49 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
傅小黑
5b1afcdb5a add timeout description for file and memory cache. 2013-12-24 21:56:48 +08:00
傅小黑
8b0929b4bc add comments in cache package files. 2013-12-22 13:35:02 +08:00
slene
8e8d39d3cb fix memory cache Put method should set value when key exist. 2013-09-13 18:04:22 +08:00
astaxie
7f4ad7ff46 fix #91 2013-07-16 19:05:44 +08:00
astaxie
174298b497 fix cache's bug expird is not changed by get method 2013-07-04 13:02:11 +08:00
astaxie
6c56a73b69 check expird second 2013-04-22 21:49:34 +08:00
astaxie
5f36a3ae4a fix when there's no config 2013-04-22 21:31:23 +08:00
astaxie
fad8100804 add cache module 2013-04-22 18:56:38 +08:00