Skip to main content
get_post_by_slug
yggdrasil
0.9.0
In yggdrasil::
cache
yggdrasil
::
cache
Function
get_
post_
by_
slug
Copy item path
Source
pub async fn get_post_by_slug(slug: &
str
) ->
Option
<
Option
<
Post
>>
Expand description
按 slug 读取单篇文章缓存。