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

cacheをクラスメソッドだけでなくインスタンスメソッドに対しても行えるようにしたい #5

Open
takamt opened this issue Sep 30, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request 機能追加・変更・拡張

Comments

@takamt
Copy link

takamt commented Sep 30, 2020

何の問題に関連するか

  • modelのキャッシュが現状クラスメソッドのみなので、インスタンスメソッドでも行えるようになるとありがたい

どのように解決するのか

代替案

備考、背景

関連、参考

@takamt takamt added the enhancement New feature or request 機能追加・変更・拡張 label Sep 30, 2020
@nishizuka
Copy link
Member

メソッド名と引数をキーとしているので、インスタンス変数を利用して内部でゴニョった結果はキャッシュが難しい。

呼び出すだけなら、現状でも出来るはず。 @takamt どういう用途が考えられますか??

@takamt
Copy link
Author

takamt commented Sep 30, 2020

最終的にクラスメソッドを呼び出しているケースが多いので、本要件はそこまで必要性ないかも

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 機能追加・変更・拡張
Projects
None yet
Development

No branches or pull requests

3 participants