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

Add state.as_cached function #1526

Merged
merged 2 commits into from
Aug 11, 2020
Merged

Add state.as_cached function #1526

merged 2 commits into from
Aug 11, 2020

Conversation

philippjfr
Copy link
Member

The state.as_cached utility allows caching data across sessions by providing a key, a function and optionally a set of keyword arguments which will be memoized.

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Aug 11, 2020
@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #1526 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1526      +/-   ##
==========================================
+ Coverage   85.62%   85.64%   +0.02%     
==========================================
  Files         144      145       +1     
  Lines       15967    15993      +26     
==========================================
+ Hits        13672    13698      +26     
  Misses       2295     2295              
Impacted Files Coverage Δ
panel/io/state.py 46.62% <100.00%> (+2.03%) ⬆️
panel/tests/io/test_state.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 141f3aa...707b260. Read the comment docs.

@philippjfr philippjfr merged commit bc06d05 into master Aug 11, 2020
@philippjfr philippjfr deleted the as_cached branch August 11, 2020 20:46
philippjfr added a commit that referenced this pull request Sep 17, 2020
* Add state.as_cached function

* Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant