Commit graph

19 commits

Author SHA1 Message Date
GitLab Bot
028bb5dda7 Add latest changes from gitlab-org/gitlab@master 2020-04-30 18:09:38 +00:00
GitLab Bot
ae96e65ee2 Add latest changes from gitlab-org/gitlab@master 2020-04-22 12:09:29 +00:00
Jasper Maes
56296f1eda Remove rails4 specific code 2018-12-16 10:48:41 +01:00
gfyoung
15b878e27e Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
2018-08-07 00:37:36 -07:00
Mario de la Ossa
9d5f5c4311
Fix redis_cacheable deserialization 2018-06-19 09:27:09 -06:00
Matija Čupić
55e2ce762d Revert "Improve cacheable module"
This reverts commit 2ebafdfb2f
2018-05-18 14:34:08 +00:00
Kamil Trzciński
2ebafdfb2f Improve cacheable module 2018-05-18 15:33:54 +02:00
Matija Čupić
a63ada5e77
Include class name and argument name in argument error 2018-05-17 11:57:23 +02:00
Matija Čupić
51f5ee33c4
Use Gitlab.rails5? for checking if on rails5 2018-05-17 01:12:37 +02:00
Matija Čupić
eeb955a66d
Revert "Move argument check to cached getter definition class method"
This reverts commit 4e1bb1d101.
2018-05-16 22:43:38 +02:00
Matija Čupić
4e1bb1d101
Move argument check to cached getter definition class method 2018-05-16 21:49:09 +02:00
Matija Čupić
a4b0876b39
Add attribute check in cached getter 2018-05-16 21:36:20 +02:00
Matija Čupić
42ab6f8557
Move attribute casting to #cached_attribute 2018-05-16 21:23:43 +02:00
Matija Čupić
6cc3a07dca
Dynamically cast value from cache 2018-05-15 21:55:16 +02:00
Matija Čupić
20cfc3fcce
Clear memoization after caching new values 2018-05-11 18:36:16 +02:00
Matija Čupić
8d49ec681f
Use symbol instead of string in RedisCacheable attribute definitions 2018-05-10 12:41:09 +02:00
Matija Čupić
7be65f5d8f
Add cached_attr_time_reader to RedisCacheable 2018-05-08 12:20:54 +02:00
Matija Čupić
aab953da7d
Update RedisCacheable#cache_attribute_key 2018-02-05 20:43:23 +01:00
Matija Čupić
aa60c7a2b5
Extract attribute caching to RedisCacheable concern 2018-02-05 17:07:49 +01:00