Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
78d26f75
Commit
78d26f75
authored
Jul 06, 2021
by
Kati Paizee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update directory path and naming for integrations
parent
d0032f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
doc/development/reactive_caching.md
doc/development/reactive_caching.md
+8
-8
No files found.
doc/development/reactive_caching.md
View file @
78d26f75
...
...
@@ -72,27 +72,27 @@ For more information, read the internal issue
## How to use
### In models and
service
s
### In models and
integration
s
The ReactiveCaching concern can be used in models as well as
`
project_service
s`
(
`app/models/
project_service
s`
).
The ReactiveCaching concern can be used in models as well as
`
integration
s`
(
`app/models/
integration
s`
).
1.
Include the concern in your model or
service
.
1.
Include the concern in your model or
integration
.
When including
in a model:
To include the concern
in a model:
```
ruby
include
ReactiveCaching
```
or when including in a
`project_service`
:
To include the concern in an integration
:
```
ruby
include
ReactiveService
```
1.
Implement the
`calculate_reactive_cache`
method in your model
/service
.
1.
Call
`with_reactive_cache`
in your model
/service
where the cached value is needed.
1.
Implement the
`calculate_reactive_cache`
method in your model
or integration
.
1.
Call
`with_reactive_cache`
in your model
or integration
where the cached value is needed.
1.
Set the
[
`reactive_cache_work_type` accordingly
](
#selfreactive_cache_work_type
)
.
### In controllers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment