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

feat: make oli support more services #1717

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

knight42
Copy link
Contributor

@knight42 knight42 commented Mar 21, 2023

Ref #422

Now with the following config:

[profiles.redis]
type = "redis"

[profiles.ustcmirror]
type = "http"
endpoint = "https://mirrors.ustc.edu.cn"

and compile oli with the following command

cargo build -p oli -F services-redis

oli could download a file from a website and save it to redis 🚀

$ ./target/debug/oli cp ustcmirror://archlinux/lastupdate redis://oli:lastsync
$ redis-cli get "oli:lastsync"
"1679393591\n"

@Xuanwo
Copy link
Member

Xuanwo commented Mar 21, 2023

$ ./target/debug/oli cp ustcmirror://archlinux/lastupdate redis://oli:lastsync
$ redis-cli get "oli:lastsync"
"1679393591\n"

Interesting! It's great to see that it works!

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo merged commit 74bd0bb into apache:main Mar 21, 2023
@knight42 knight42 deleted the feat/support-more-svcs branch March 21, 2023 14:14
@knight42 knight42 mentioned this pull request Mar 22, 2023
2 tasks
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