Skip to main content
set_post_by_slug
yggdrasil
0.9.0
In yggdrasil::
cache
yggdrasil
::
cache
Function
set_
post_
by_
slug
Copy item path
Source
pub async fn set_post_by_slug(slug: &
str
, post:
Option
<
Post
>)
Expand description
按 slug 写入单篇文章缓存,None 表示文章不存在。