Commit graph

3 commits

Author SHA1 Message Date
GitLab Bot
3597fb6d33 Add latest changes from gitlab-org/gitlab@master 2021-06-16 18:10:35 +00:00
Douglas Barbosa Alexandre
279be8aaa2
Change SafeRequestStore#write to accept an options hash
This change the write to accept an options hash to make
it compatible with ActiveSupport::Cache::Store#write method.

The options hash are not passed to the underlying cache
implementation because RequestStore#write accepts only
a key, and value params.
2018-12-17 19:57:03 -02:00
Michael Kozono
45cf64c827 Use a null object with RequestStore
Makes it easier and safer to use RequestStore because you don't need to
check `RequestStore.active?` before using it. You just have to use
`Gitlab::SafeRequestStore` instead.
2018-09-24 12:11:26 -07:00