go-siris / siris

DEPRECATED: The community driven fork of Iris. The fastest web framework for Golang!
Other
142 stars 16 forks source link

Use Cache Markdown for partial data #37

Closed speedwheel closed 7 years ago

speedwheel commented 7 years ago

I saw that the Cache Markdown it's used for full page caching, is there any way I can use it just to store certain content from the page (key, value interface for example).

Allendar commented 7 years ago

You can easily write a cache yourself with a atomic-based map structure like https://github.com/orcaman/concurrent-map or https://github.com/coocood/freecache. This way you'll have 100% control on how your block-cache works.

theodesp commented 7 years ago

Maybe we can w8 for 1.9 with sync.map https://github.com/golang/go/issues/18177 ?

Allendar commented 7 years ago

Closing this as it seems like a custom required feature for speedwheel's project.