-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: Make Cache Configurable #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DanielDango
wants to merge
22
commits into
ardoco:main
Choose a base branch
from
DanielDango:feature/add-cache-configurations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6245518
feat: encapsulate cache replacement strategies into enum
DanielDango 95ecd2d
feat: add cache initialization logic to EvaluationConfiguration and u…
DanielDango c34b4e5
feat: make LocalCache implement Cache and revamp CacheReplacementStra…
DanielDango cc8c041
feat: retrieve cache replacement strategy from ModuleConfiguration
DanielDango 5186194
feat: implement HierarchicalCache for multi-layer caching and update …
DanielDango b239c14
docs: update caching documentation to include HierarchicalCache
DanielDango 9c804e1
Merge remote-tracking branch 'refs/remotes/upstream/main' into featur…
DanielDango b4aebe6
feat: support environment-based cache configuration
DanielDango a515e5f
Merge remote-tracking branch 'upstream/main' into fork/DanielDango/fe…
DanielDango 2135004
revert: remove module config for caches, instead get cache configurat…
DanielDango 11aa1bb
test: enhance CacheTest with new entry writing, retrieval, serializat…
DanielDango 68b5c9e
fix: resolve sonar cube issues
DanielDango 4cadcf7
refactor: streamline cache manager configuration
DanielDango 53ebb05
refactor: update cache conflict resolution to replacement strategy te…
DanielDango 8ca6260
revert: remove unused argumentAsEnum method from ModuleConfiguration
DanielDango c1ff184
refactor: enhance cache hierarchy parsing to support quoted strings a…
DanielDango 0940083
refactor: make default cache configuration identical to previous beha…
DanielDango 1f4b55e
refactor: improve cache inconsistency handling and resolution methods
DanielDango c1db4b5
refactor: mark resolveViaInternalKey method as deprecated with clarif…
DanielDango 0e00965
feat: add test-specific environment configuration and enforce env ove…
DanielDango ae89375
refactor: update documentation for CacheManagers reset usage and remo…
DanielDango f5aea19
refactor: add deprecated javadoc annotation and standardize dotenv va…
DanielDango File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,26 @@ | ||
| OPENWEBUI_URL=https://domain.tldr/api | ||
| OPENWEBUI_API_KEY= | ||
|
|
||
| OLLAMA_EMBEDDING_HOST= | ||
| #OLLAMA_EMBEDDING_PASSWORD= | ||
| #OLLAMA_EMBEDDING_USER= | ||
|
|
||
| OLLAMA_HOST= | ||
| #OLLAMA_PASSWORD= | ||
| #OLLAMA_USER= | ||
|
|
||
| OPENAI_ORGANIZATION_ID= | ||
| OPENAI_API_KEY= | ||
| OPENWEBUI_URL=https://domain.tldr/api | ||
| OPENWEBUI_API_KEY= | ||
|
|
||
| OLLAMA_EMBEDDING_HOST= | ||
| #OLLAMA_EMBEDDING_PASSWORD= | ||
| #OLLAMA_EMBEDDING_USER= | ||
|
|
||
| OLLAMA_HOST= | ||
| #OLLAMA_PASSWORD= | ||
| #OLLAMA_USER= | ||
|
|
||
| OPENAI_ORGANIZATION_ID= | ||
| OPENAI_API_KEY= | ||
|
|
||
| # Cache strategy for handling conflicts between different cache levels | ||
| # Valid values: NONE, ERROR, OVERWRITE | ||
| #CACHE_REPLACEMENT_STRATEGY=ERROR | ||
|
|
||
| # Cache hierarchy - ascending comma-separated list of cache types to use | ||
| # Examples: | ||
| # LOCAL - only local file-based cache | ||
| # LOCAL,REDIS - local cache as primary, Redis as secondary fallback | ||
| # REDIS,LOCAL - Redis as primary, local cache as secondary fallback | ||
| # Valid cache types: LOCAL, REDIS | ||
| #CACHE_HIERARCHY=REDIS,LOCAL | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.