class Core \ PersistentAccountTypeHashrates


Allows an AccountType to have data stored persistently, for example storing the supported hashrate currencies - so that they do not have to be refetched every time.


Method Summary

Name Description
__construct(AccountType $exchange, Connection $db)
getSupportedHashrateCurrencies($force = false) Quickly get all supported currencies for this account. May be cached.
storeSupportedHashrateCurrencies($currencies, Logger $logger)

public function __construct(AccountType $exchange, Connection $db)


public function getSupportedHashrateCurrencies($force = false)

Quickly get all supported currencies for this account. May be cached.

Parameters:
force - if true, force a refresh
Defaults:
force = false

public function storeSupportedHashrateCurrencies($currencies, Logger $logger)