Skip to content
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

[config] put cache in the DAO config. #162

Merged
merged 1 commit into from
Apr 26, 2015
Merged

[config] put cache in the DAO config. #162

merged 1 commit into from
Apr 26, 2015

Conversation

thibaultcha
Copy link
Member

This makes it clearer for users that we are here talking about the cache
of the database entities, and not of any API added to Kong. It also
merges properties that are very linked together. In the case of another
database, one might want to have a bigger, or smaller caching value.

@thibaultcha thibaultcha changed the title put cache in the DAO config. [config] put cache in the DAO config. Apr 25, 2015
@thibaultcha
Copy link
Member Author

@thefosk Please thoughts, this makes the config less confusing for users I believe, as documented in: Kong/docs.konghq.com#45

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 66.25% when pulling 6c93d9e on configuration into 7c67646 on master.

@subnetmarco
Copy link
Member

I don't mind renaming it to database_cache, but it shouldn't be inside of the Cassandra-specific configuration because the database cache is DAO agnostic. I don't agree with this change: https://github.com/Mashape/kong/pull/162/files#diff-e19a50844f2b535a0140d2ce8281574aR66

@thibaultcha
Copy link
Member Author

Like explained, you might want to give a different cache value for cassandra than for sqlite.

@subnetmarco
Copy link
Member

I still think caching should be DAO agnostic, until it will be removed when #15 is fully implemented.

The only reason why the cache should be different for different DAOs is if there are some performance issues when setting different expirations times, which is not going to be the case (and we shouldn't support any datastore where this might be a case).

Moreover the cache expiration is not related to the datastore but related to the a shared dictionary inside nginx, items don't expire from the datastore but from a shared dictionary. Putting the cache properties inside the datastore properties makes it seem like it's a cache that's somehow related to the datastore items/tables (like https://dev.mysql.com/doc/refman/5.1/en/query-cache.html).

@thibaultcha thibaultcha force-pushed the configuration branch 2 times, most recently from 81256c8 to cb0cfad Compare April 26, 2015 00:50
@thibaultcha
Copy link
Member Author

@thefosk updated

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 66.31% when pulling cb0cfad on configuration into 5e1e1c5 on master.

@subnetmarco
Copy link
Member

It seems like now it's in two places, you forgot to delete the conf entry in the datastore settings.

@thibaultcha
Copy link
Member Author

Oops yes, fixed. Waiting for tests and I'll merge.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 66.31% when pulling 7cb63a2 on configuration into 2f7ae81 on master.

thibaultcha added a commit that referenced this pull request Apr 26, 2015
[config] put `cache` in the DAO config.
@thibaultcha thibaultcha merged commit 63311dd into master Apr 26, 2015
@thibaultcha thibaultcha deleted the configuration branch April 26, 2015 11:22
ctranxuan pushed a commit to streamdataio/kong that referenced this pull request Aug 25, 2015
[config] put `cache` in the DAO config.
hutchic pushed a commit that referenced this pull request Jun 10, 2022
### Summary

#### libyaml 0.2.2 release

- #95 -- build: do not install config.h
- #97 -- appveyor.yml: fix Release build
- #103 -- Remove unused code in yaml_document_delete
- #104 -- Allow colons in plain scalars inside flow collections
- #109 -- Fix comparison in tests/run-emitter.c
- #117 -- Fix typo error
- #119 -- The closing single quote needs to be indented...
- #121 -- fix token name typos in comments
- #122 -- Revert removing of open_ended after top level plain scalar
- #125 -- Cherry-picks from PR 27
- #135 -- Windows/C89 compatibility
- #136 -- allow override of Windows static lib name

#### libyaml 0.2.3 release

- #130 Fixed typo.
- #144 Fix typo in comment
- #140 Use pointer to const for strings that aren't/shouldn't be modified
- #128 Squash a couple of warnings in example-deconstructor-alt
- #151 Fix spelling for error message
- #161 Make appveyor config be a hidden file
- #159 Add CHANGES file
- #160 Always output document end before directive (YAML 1.2 compatibility)
- #162 Output document end marker after open ended scalars
- #157 change cmake target name from libOFF.a to libyaml.a
- #155 include/yaml.h: fix comments
- #169 Fixed missing token in example
- #127 Avoid recursion in the document loader.
- #172 Support %YAML 1.2 directives
- #66 Change dllexport controlling macro to use _WIN32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants