cache_loader_param.py 948 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright 2019 The FATE Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. class CacheLoaderParam:
  17. def __init__(self, cache_key=None, job_id=None, component_name=None, cache_name=None):
  18. super().__init__()
  19. self.cache_key = cache_key
  20. self.job_id = job_id
  21. self.component_name = component_name
  22. self.cache_name = cache_name
  23. def check(self):
  24. return True