Skip to content

doc: documented the shdict:ttl() and shdict:expire() API functions. #1157

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

Closed

Conversation

thibaultcha
Copy link
Member

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

A first pass at documenting the new shm methods introduced in openresty/lua-resty-core#140.

Kind of exploring new territories here since I don't think any API in this documentation refers to a resty.core-only API yet. I am open to suggestions on how to reflect that as best as possible in the docs!


**context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua**

**requires:** `resty.core.shdict` or `resty.core`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial idea is to introduce this new requires section to make this obvious early in the reading of this method's documentation. There is also a note at the bottom of it with a link to the lua-resty-core library. Open to suggestions!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thibaultcha That's fine, though we'll soon make lua-resty-core mandatory and loaded by default in the next ngx_lua release anyway :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agentzh Yeah - I remember :) Alright then!

@thibaultcha
Copy link
Member Author

@agentzh Should we also add a link to these new methods here?

@agentzh
Copy link
Member

agentzh commented Sep 21, 2017

@thibaultcha Yes, please :)

@agentzh
Copy link
Member

agentzh commented Sep 21, 2017

@thibaultcha Merged. Thanks!

@agentzh agentzh closed this Sep 21, 2017
@thibaultcha thibaultcha deleted the docs/shm-ttl-expire branch January 12, 2018 02:37
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.

2 participants