Commit bfdc3453 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'kpaizee-change-project-services-directory-name' into 'master'

Update directory path and naming for integrations

See merge request gitlab-org/gitlab!65532
parents 25ea3ba3 78d26f75
...@@ -72,27 +72,27 @@ For more information, read the internal issue ...@@ -72,27 +72,27 @@ For more information, read the internal issue
## How to use ## How to use
### In models and services ### In models and integrations
The ReactiveCaching concern can be used in models as well as `project_services` The ReactiveCaching concern can be used in models as well as `integrations`
(`app/models/project_services`). (`app/models/integrations`).
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 ```ruby
include ReactiveCaching include ReactiveCaching
``` ```
or when including in a `project_service`: To include the concern in an integration:
```ruby ```ruby
include ReactiveService include ReactiveService
``` ```
1. Implement the `calculate_reactive_cache` method in your model/service. 1. Implement the `calculate_reactive_cache` method in your model or integration.
1. Call `with_reactive_cache` in your model/service where the cached value is needed. 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). 1. Set the [`reactive_cache_work_type` accordingly](#selfreactive_cache_work_type).
### In controllers ### In controllers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment